Hello everyone,
I guess this one is tricky and I know I won't get an answer unless someone had the same exact problem. I'm trying to execute a delete script via ASP, using the FileSystemObject, but it never executes.The Explorer progress bar stucks almost in the middle and thats it. The FileExists method works but Open, Delete, Copy and some more i guess, do not work. The funny thing is that this happens at home!!At work, the exact same script works!!!The code is simple and listed below
Code:
<%@Language=VBScript %>
<%
Set objFSO=Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(Server.MapPath("testing.txt")) Then
objFSO.DeleteFile(Server.MapPath("testing.txt"))
Response.Write "FileFound!"
Else
Response.Write "Wrong Path"
End If
Set objFSO=Nothing
%>
Thanks in advance for any possible answers
Kostas Lagos