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.
67bb4df2775f6a6b603347dce7119571?d=identicon&s=25 unknown (Guest)
on 2006-06-06 11: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 Fulton'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,

23172b6630dc631a134c9bad2fec2a39?d=identicon&s=25 Chris (Guest)
on 2006-06-06 15:12
This topic is locked and can not be replied to.