I have this code which creates a batch file. What I'm trying to do is close it once it's finished running.
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set MyFile_bat = fs.CreateTextFile(filename_bat, True)
strLine = "C:\MiniSoft\WS92\ws92_32.exe \\cmr\scripts\mis\minisoft\" & qmake("dt" & ".s92"
MyFile_bat.writeline strLine
<>
MyFile_bat.Close
Set MyFile_bat = Nothing
--------------------------------------------------
If I add a line <>
MyFile_bat.writeline "exit" to close the dos window, it doesn't work. However putting some other command e.g "cls", does work.
Any ideas on doing this? Do I need to create a PIF file - if so how.....what...
thanks.
Set fs = Server.CreateObject("Scripting.FileSystemObject"
Set MyFile_bat = fs.CreateTextFile(filename_bat, True)
strLine = "C:\MiniSoft\WS92\ws92_32.exe \\cmr\scripts\mis\minisoft\" & qmake("dt" & ".s92"
MyFile_bat.writeline strLine
<>
MyFile_bat.Close
Set MyFile_bat = Nothing
--------------------------------------------------
If I add a line <>
MyFile_bat.writeline "exit" to close the dos window, it doesn't work. However putting some other command e.g "cls", does work.
Any ideas on doing this? Do I need to create a PIF file - if so how.....what...
thanks.