/ Published in: W-Language
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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)