How do I use the input in a text box to search for a specified file. The file could be anywhere, ie if I type in log.txt how do I find this file and display it
Printable View
How do I use the input in a text box to search for a specified file. The file could be anywhere, ie if I type in log.txt how do I find this file and display it
You will have to recursivly search all disks and folders for the file. Use dir() for detecting whether you're dealing with a folder or the correct file or something different.
HTH
Matthias
Best wishes,
Matthias Steinbart
Rnady Birch has an excellent example at :
http://www.mvps.org/vbnet/code/fileapi/recursive.htm
- it's probably the fastest way of doing it.
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb