Link to home
Start Free TrialLog in
Avatar of ynaina
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("Scripting.FileSystemObject")
      If Not oFS1.FolderExists(sPath1) Then Exit Sub
      Set oFile1 = oFS.GetFile(sPath1 & "\Addition1.xls")
      oFile1.Delete
End Sub
ASKER CERTIFIED SOLUTION
Avatar of shaggy_the_sheep
shaggy_the_sheep

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial