[clean-list] Launching a DOS app
Wed, 12 Dec 2001 16:15:53 -0200
How could I launch a DOS application from my clean program using the ObjectIO 1.2.1?
Note: I've tried something like that:
# (ostb,pst) = accPIO (getIOToolbox) pst
# (ok,ostb) = WinLaunchApp "mitdos.exe infile.txt outfile.txt" True ostb
| not ok = ((vnom,f,tfinal,lig,rs,rr,xe,xr,xm,j,b,p), pst) <- I did a function wich reports the error here.
The program runs, but it doesn't launchs the "mitdos", which is in the same directory of the program (I've also tried to write the entire path, but it doesn't work too).
Note 2: What means the Bool argument of the WinLaunchApp?
Note 3: I want that other program to make some simulations and recover the results in the clean program trough the "outfile.txt", the result of the simulation. How could I know when has the other program finished its execution to read the file? (or maybe WinLaunchApp breaks the Clean program untill the other has finished..., I really don't know)
Thank you all.
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com