User1535942433 posted
Hi yzidell,
Accroding to your codes,as far as I think,you could check follow this:
1.Make sure the ASP user has permissions to this folder. By default this user is not given access to much of the harddrive.
2.Make sure the file's path is right.
I suggest you could debug and breakpint to check wheather your codes are right and have no errors.
This is a demo:
Public Sub DeleteFileFromFolder(ByVal StrFilename As String)
Dim strPhysicalFolder As String = Server.MapPath("..\")
Dim strFileFullPath As String = strPhysicalFolder & StrFilename
If IO.File.Exists(strFileFullPath) Then
IO.File.Delete(strFileFullPath)
End If
End Sub
If you have errors and can't solve it by yourself,you could post your errors and full codes to us.It will help us to solve your problems.
Best regards,
Yijing Sun