How to Delete a File using VB 6.0

This will completely delete a file from the hard drive using Visual Basic 6.0. This will permanently delete the file! It will NOT send it to the recycle bin.

        Dim fileToDelete As String

        fileToDelete = "c:\somefile.file"


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.