by Jessy Butzke (11 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 6th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shows you how to delete a file without going to the recycle bin permanently
On Error Resume Next
Dim strAsk As String
strAsk$ = MsgBox("Are you sure you want to clear all files in your windows\temp folder?", vbQuestion + vbYesNo, "Confirm Delete")
If strAsk$ = vbYes Then
Kill "c:\windows\temp\*.*"
'You can change what is between the quotations to any path you wish
'The (star dot star) can be changed to a filename.
End If
End Sub
No comments have been posted about Shows you how to delete a file without going to the recycle bin permanently. Why not be the first to post a comment about Shows you how to delete a file without going to the recycle bin permanently.