How can i mimic a windows search?

This is a discussion on How can i mimic a windows search? within the C++ Programming forums, part of the General Programming Boards category; Really just curious on how i could go about doing something along the lines of a search. Have the user ...

  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,138
    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, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21