Hello,
It is getting anoying but I can't seem to delete a file of the server. This is de code I use:
Path = ServerPath & "\upload\"& Map & "\" & File
Set FSO = CreateObject("Scripting.FileSystemObject")
IF FSO.FileExists(Path) THEN
FSO.DeleteFile(""& Path & "")
Response.Write(""& Path & "")
Response.Write("File deleted")
END IF
Set FSO = Nothing
Can anybody tell me what is wrong?
Don't eat yellow snow!
It is getting anoying but I can't seem to delete a file of the server. This is de code I use:
Path = ServerPath & "\upload\"& Map & "\" & File
Set FSO = CreateObject("Scripting.FileSystemObject")
IF FSO.FileExists(Path) THEN
FSO.DeleteFile(""& Path & "")
Response.Write(""& Path & "")
Response.Write("File deleted")
END IF
Set FSO = Nothing
Can anybody tell me what is wrong?
Don't eat yellow snow!