I am wrote a file del.asp where I am deleting a file but I am getting the following error
Microsoft VBScript runtime (0x800A0046)
/asptreeview/del.asp, line 9
The code which I wrote is as follows...
PhotoFile = "/asptreeview/asptree/" & Request.QueryString("file")(1) PhotoPath = Server.MapPath(PhotoFile) Response.Write(PhotoPath & "<br />") dim ServerFSO Set ServerFSO=Server.CreateObject("Scripting.FileSystemObject") if ServerFSO.FileExists(PhotoPath) then ServerFSO.DeleteFile(PhotoPath) end if set ServerFSO=nothing
what is the problem ...can anyone help me???