Dim FSO
Set FSO = Server.CreateObject ("Scripting.FileSystemObject"
Dim itemName, itemPath
itemName = "photo.gif"
itemPath = Server.MapPath("Photos" & "\" & itemName
Dim itemFile
Set itemFile = FSO.GetFile (itemPath)
itemFile.Delete
Can anyone tells me why this code doesn't works???
Or let me know how can i delete a file....
Thanks.
Set FSO = Server.CreateObject ("Scripting.FileSystemObject"
Dim itemName, itemPath
itemName = "photo.gif"
itemPath = Server.MapPath("Photos" & "\" & itemName
Dim itemFile
Set itemFile = FSO.GetFile (itemPath)
itemFile.Delete
Can anyone tells me why this code doesn't works???
Or let me know how can i delete a file....
Thanks.