Forum: Ruby External application under Windows

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-06-06 13:00
(Received via mailing list)
Dear all,

in Windows XP, I would like to open a an external program (Matlab),
write commands from a text file to it and close it again.
Now, I don't know how to do this using win32ole, as adapting
Hal F.'s example of MS word doesn't work in a straightforward

require "win32ole"

print "Enter the filename to print: "
docfile = gets

my_matlab = "Matlab.Application"
my_matlab.visible =  true docfile
my_matlab.options.printBackground =  false

as the system doesn't know what to think of Matlab.Application.

From the Properties, I know that matlab is started via

C:\Programme\MATLAB_SV701\bin\win32\MATLAB.exe .

How do I tell my system that it's there ?
Alternatively, could this be done by createProcess() ? How ?

Thank you very much,

Best regards,

Chris (Guest)
on 2006-06-06 17:12
This topic is locked and can not be replied to.