dilletante, thanks. i realized there was confusion between CreateTextFile and OpenTextFile...
i am closing the objects once i'm done with them...
however, although my script is fine still can't close the MS-DOS window which I assumed would close if i had
testfile.WriteLine "exit" as...
Thanks for responding doug.
Here's a sample code for CreateTextFile from DevGuru
Code:
<%
Dim filesys, testfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set testfile= filesys.CreateTextFile("c:\somefile.txt", True)
testfile.WriteLine "Your text goes...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.