View Single Post
Old May 9th, 2005, 4:41 PM   #1
paulchwd
Hobbyist Programmer
 
paulchwd's Avatar
 
Join Date: Mar 2005
Posts: 139
Rep Power: 4 paulchwd is on a distinguished road
Help:::::::: Why Wont This Work??????

I am trying to run this simple script through IIS. Y wont it work? I've used this code a 100 times in the past?

code below:::::


<%
response.write "File is writing"
Dim fs, ts
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set ts=fs.CreateTextFile("C:\myLogs\log.txt", True)
ts.WriteLine "TEST"
ts.close
Set fs=Nothing
response.write "File Written"
%>


the scritpt doesn't work for some reason. I try to load it (http://localhost/devs/file.asp)
and it just keeps trying to load. It wont actuall excute this script.
I tried a simple script like a simple response.write and it worked. So I dont think its an IIS 5.1 problem.

PS: i tied running it as both an admin user and a normal user. Same result
paulchwd is offline   Reply With Quote