toesieo
7/30/2013 - 2:11 PM

Deleting files using the delete method of System.IO

Deleting files using the delete method of System.IO

Dim FileToDelete As String
FileToDelete = "file to delete"
If System.IO.File.Exists( FileToDelete ) = True Then
System.IO.File.Delete( FileToDelete )
MsgBox("File Deleted")
End If