Thread: How can i mimic a windows search?

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    14

    How can i mimic a windows search?

    Really just curious on how i could go about doing something along the lines of a search. Have the user enter in something they want to find and than have c scan the local directories to find it.

    anyone?

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Use FindFirst/FindNext to look for the files. Use recursion for folders. If the user entered more criteria, you'll have to check the files you found for it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to Search for a certain service and a process in Windows
    By daher in forum Windows Programming
    Replies: 11
    Last Post: 09-04-2008, 08:14 AM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. Big help in Astar search code...
    By alvifarooq in forum C++ Programming
    Replies: 6
    Last Post: 09-24-2004, 11:38 AM