VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



code to delete a file by entering the path

by shiran (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 1st July 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)

code to delete a file by entering the path

Rate code to delete a file by entering the path



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


Download this snippet    Add to My Saved Code

code to delete a file by entering the path Comments

No comments have been posted about code to delete a file by entering the path. Why not be the first to post a comment about code to delete a file by entering the path.

Post your comment

Subject:
Message:
0/1000 characters