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/.