code to delete a file by entering the path
code to delete a file by entering the path
Rate code to delete a file by entering the path
(2(2 Vote))
On Error GoTo error
Dim FileSystemObject As Object
Set FileSystemObject = CreateObject("Scripting.FileSystemObject")
FileSystemObject.DeleteFile Text1.Text
error:
MsgBox "FILE NOT FOUND!", vbOKOnly + vbCritical, ""
End Sub
code to delete a file by entering the path Comments
No comments yet — be the first to post one!
Post a Comment