VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Delete a file with almost one line of code

by Morten D Carlsson (3 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sat 30th September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Delete a file with almost one line of code

Rate Delete a file with almost one line of code



' add the following code in to it
' create a textfile in c:\ that you give the name testing.txt

Dim strFile As String
strFile = "c:\testing.txt"
Kill strFile
msgBox "The file " & strFile & " has been deletet",vbInformation,"Del"

' by Morten D Carlsson


Download this snippet    Add to My Saved Code

Delete a file with almost one line of code Comments

No comments have been posted about Delete a file with almost one line of code. Why not be the first to post a comment about Delete a file with almost one line of code.

Post your comment

Subject:
Message:
0/1000 characters