G
Guest
I want to delete files but I also want to set the wildcards manually. Look at
this example:
If TextBox1.Text = "" Then
Else
For Each foundFile As String In
My.Computer.FileSystem.GetFiles(curdir & "\_res_original", _
FileIO.SearchOption.SearchAllSubDirectories, TextBox1.Text)
My.Computer.FileSystem.DeleteFile(foundFile)
Next
End If
------------
TextBox1.Text should look like <"*.exe", "*.txt", "*.ini">
It works with one extension but if I specify many of them, vb gives an error
that there is an illegal character. I suppose it handles the commas not
correctly.
Thanks for any help
this example:
If TextBox1.Text = "" Then
Else
For Each foundFile As String In
My.Computer.FileSystem.GetFiles(curdir & "\_res_original", _
FileIO.SearchOption.SearchAllSubDirectories, TextBox1.Text)
My.Computer.FileSystem.DeleteFile(foundFile)
Next
End If
------------
TextBox1.Text should look like <"*.exe", "*.txt", "*.ini">
It works with one extension but if I specify many of them, vb gives an error
that there is an illegal character. I suppose it handles the commas not
correctly.
Thanks for any help