ynaina
asked on
ASP Upload Delete is not working
I am uploading a file using ASP and i am trying to delete that file but that is not happening
i have used this code
Sub DeleteFromDisk1(sPath1)
Dim oFS1, oFile1
Dim nIndex1
If sPath1 = "" Then Exit Sub
Set oFS1 = Server.CreateObject("Scrip ting.FileS ystemObjec t")
If Not oFS1.FolderExists(sPath1) Then Exit Sub
Set oFile1 = oFS.GetFile(sPath1 & "\Addition1.xls")
oFile1.Delete
End Sub
i have used this code
Sub DeleteFromDisk1(sPath1)
Dim oFS1, oFile1
Dim nIndex1
If sPath1 = "" Then Exit Sub
Set oFS1 = Server.CreateObject("Scrip
If Not oFS1.FolderExists(sPath1) Then Exit Sub
Set oFile1 = oFS.GetFile(sPath1 & "\Addition1.xls")
oFile1.Delete
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.