-
i mad program i can list all the file i don't want to but the problem is some of those files are in 'Program Files' and some are in 'My documents' and so on.... i list them in listbox with location but how would i KILL all of those files witch i list in listbox, with one button click.
-
Store the full paths to all files in the listbox, then loop trough the list and use Kill to delete them.
-
This should work
Private Sub Command1_Click()
Dim Search As Integer
For Search = 1 To List1.ListCount - 1
Kill List1.List(Search)
Next Search
End Sub