ADO DOT NET
Well-known member
- Joined
- Dec 20, 2006
- Messages
- 156
Kill(My.Application.Info.DirectoryPath & "\*.txt")
I am deleting all text files with the above command.
but if there is no file I will get an error
I want to check first, and if theres at least one file with .txt ext. then run that command.
but dont know how to check if there is a file with a specific ext. ?
the name maybe anything...
I am deleting all text files with the above command.
but if there is no file I will get an error
I want to check first, and if theres at least one file with .txt ext. then run that command.
but dont know how to check if there is a file with a specific ext. ?
the name maybe anything...