How to invoke an .exe with command line arguments

Hi all,

I have to invoke an .exe with command line arguments, for example

My application is installed in C:\Program Files\Companyname\app.exe

The app.exe has to called with command line argument like app.exe -mlo
-applp

How can we do this?

I tried invoking the calculator like this,

require 'rubygems'
require 'win32/Autogui'

    include Autogui::Input

    class Calculator < Autogui::Application
      def initialize
        super :name => "calc", :title => "Calculator"
      end
      def edit_window
        main_window.children.find {|w| w.window_class == 'Edit'}
      end
    end

    calc = Calculator.new
    calc.set_focus; type_in('2+2=')

···

--
Posted via http://www.ruby-forum.com/.

Generally, command line arguments can be accessed via ARGV.

···

Am 22.04.2013 14:12, schrieb vijay Ram:

Hi all,

I have to invoke an .exe with command line arguments, for example

My application is installed in C:\Program Files\Companyname\app.exe

The app.exe has to called with command line argument like app.exe -mlo
-applp

How can we do this?

--
<https://github.com/stomar/&gt;