Delete File

'Add 1 CommandButton to your form (named Command1),
'To delete the file press the button.

'Insert the following code to your form:

Private Sub Command1_Click()
'Replace c:\MyDir\MyFile.gif with the name of the file
'you want to delete

Kill ("c:\MyDir\MyFile.gif")
End Sub

Go Back