Results 1 to 7 of 7

Thread: Search like in windows

  1. #1

    Thread Starter
    Addicted Member Filik's Avatar
    Join Date
    Aug 2005
    Posts
    208

    Search like in windows

    Hi,
    i want to make an remote data extractor which can connect to a remote pc, find all exel or word files and retreive them, the problem is i dont know how to build a search engine to find the files, a search like in "Start -> Search" would be nice. Anyway, maybe someone has some usefull code for this project?

    Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Search like in windows

    The only simple way is to do a recursive search through the file system for files with the desired extension(s). Anything else would require indexing all the files on the hard drive prior to the search being conducted.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member Phill64's Avatar
    Join Date
    Jul 2005
    Location
    Queensland, Australia
    Posts
    1,201

    Re: Search like in windows

    There is a nice codebank example by <ABX about recursive file search

    http://www.vbforums.com/showthread.p...ht=file+search

  4. #4

    Thread Starter
    Addicted Member Filik's Avatar
    Join Date
    Aug 2005
    Posts
    208

    Re: Search like in windows

    Thx for the link Phill, just one question, if i want to find all the files in the folder or subfolders what do i write instead of the files extension?

  5. #5
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Search like in windows

    Man, I did a project using a recursive function that lists every file on a computer's hard drive along with other things, could easily be modified to list only certain extensions... problem is... the code is long gone in reformatville... it was pretty nifty.. maybe i'll try to work something out....

  6. #6
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Search like in windows

    Well would you lookey here... check this thread...

    http://www.vbforums.com/showthread.php?t=341919

  7. #7
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Search like in windows

    Need Recursive File Copy??? Check here...

    http://www.bubble-media.com/cgi-bin/...es/000026.html

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