[thelist] File System Object not working on IIS
Casey Crookston
casey at thecrookstons.com
Thu Jul 29 13:11:46 CDT 2004
I used this little bit of code back when I was running PWS on win98. It
used File System Objects to open and edit a text file. I'm trying it now on
winXP, IIS 5.1, and it hangs. Not sure why....
dim FileObj,OutStream
Set FileObj=Server.CreateObject("Scripting.FileSystemObject")
Set OutStream=FileObj.OpenTextFile(Server.MapPath("includes/photo1.html"),2,
TRUE)
OutStream.Write(Request.Form("strMessage"))
OutStream.Close
Response.Redirect"../default.asp"
Thanks in advance!
Casey
More information about the thelist
mailing list