R
royzda1
Guest
I'm having a nightmare trying to get the File System Object to work on my XP/IIS 5.1 box. I have granted the appropriate permissions. Does anyone know if I have to do anything special for this to work? I have a XP/IIS 5.0 box and it works fine with the default IIS settings after install. Below is the code I am using. When stepping the code in InterDev, the CreateObject line executes, then, on the OpenTextFile, IIS stops responding. No error, nothing, it will try to execute this line forever. I expected it to timeout eventually, but nothing. Any help will be greatly appreciated.
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile("C:\Temp\testing.txt", 8, True)
MyFile.WriteLine "*** Write File Test ***"
MyFile.WriteLine " file was written to at: " & Now
MyFile.WriteLine " "
MyFile.Close
set ScriptObject = nothing
set MyFile = nothing
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile("C:\Temp\testing.txt", 8, True)
MyFile.WriteLine "*** Write File Test ***"
MyFile.WriteLine " file was written to at: " & Now
MyFile.WriteLine " "
MyFile.Close
set ScriptObject = nothing
set MyFile = nothing