From: "Damián M. González" Date: 2013-01-08T08:42:49+09:00 Subject: Re: Call Windows .exe with arguments Well, I'm not an expert on this but look: depends of the situation. What's that .exe? how it was generated? Seems that you can't pass directly arguments to an .exe, instead, when you compile your proyect, you can specifically pass to the compiler the arguments which you want to be executed, and they will be fixeds, you can't change them later. For example, with Ocra compiler, for windows, you can do this: " Command Line Arguments To pass command line argument to your script (both while building and when run from the resulting executable), specify them after a “—” marker. For example: ocra script.rb -- --some-options=value This will pass “—some-options=value” to the script when build and when running the executable. Any extra argument specified by the user when invoking the executable will be appended after the compile-time arguments. " Hope this helps and if anybody want to correct me if I'm wrong or add something will be nice. Cheers. -- Posted via http://www.ruby-forum.com/.