launching a search with parameters

This is a discussion on launching a search with parameters within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know how to launch a search with paramters from within a program? for example : LaunchSearch( ALL_DRIVES, " ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    75

    Question launching a search with parameters

    Does anyone know how to launch a search with paramters from within a program?

    for example :
    LaunchSearch( ALL_DRIVES, " *.cpp " );

    The result would be a windows search launched without further user input.

    Thx, I'd appreciate it.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    Look at the thread, someone has done most of it for you.

    http://www.cprogramming.com/cboard/s...&threadid=9628

    Some code using FindFirstFile()

    a * is any number of characters

    a ? is one character
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    75

    hmm..

    Yes, I might be able to do that with the FindFirstFile and what not... but the problem is that I need the actual 'windows search' dialog box to come up and start searching without any questions.

    I know it seems a little odd, but I merely want to act as a router that takes in input and then starts the 'windows search' to finish the job.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Allowing my search function to search sub directories!
    By Queatrix in forum Windows Programming
    Replies: 10
    Last Post: 09-30-2005, 04:54 PM
  2. Search Engine - Binary Search Tree
    By Gecko2099 in forum C Programming
    Replies: 9
    Last Post: 04-17-2005, 02:56 PM
  3. Question 39: Quicksort vs Linear Search
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 04-17-2005, 11:03 AM
  4. Bible program - search functionality
    By ChadJohnson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 04-15-2005, 11:33 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

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