GinnyLee
December 20th, 1999, 08:29 AM
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
|
Click to See Complete Forum and Search --> : Text based search for Files GinnyLee December 20th, 1999, 08:29 AM 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 Matthias S December 21st, 1999, 03:41 AM 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 Chris Eastwood December 21st, 1999, 04:01 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |