Return to Snippet

Revision: 2407
at February 9, 2007 01:34 by merijnw


Initial Code
TempFile is string = "executethis.bat"
FID = fCreate(TempFile)
IF FID = -1 THEN sErr = "Could not create a bat file."
scommand is string = fexedir()+"\someprog.exe -param1 > someprog.out"
IF NOT fWriteLine(FID, scommand) THEN sErr = "Could not write in bat file."
fClose(FID)
IF NOT ExeRun(TempFile ,exeIconize,exeWait) THEN sErr = "Could not executed the bat file."
fDelete(TempFile)

Initial URL

                                

Initial Description

                                

Initial Title
Execute external program and redirect output to file

Initial Tags
redirect

Initial Language
W-Language