CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    8

    Text based search for Files

    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


  2. #2
    Join Date
    Jul 1999
    Location
    Prague, Czech Republic
    Posts
    263

    Re: Text based search for Files

    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

  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Text based search for Files

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured