Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Calling Windows Search programatically

04 Dec 2009   #1
Diarmuid

Windows 7
 
 
Calling Windows Search programatically

Hi,

I have a software application which has a facility to automatically call Windows Desktop Search and pass a search parameter to it. This works fine on XP machines which have WDS installed

For example, you just run this command and WDS will search for every file associated with 'ref123':
"C:\Program Files\Windows Desktop Search\WindowsSearch.exe" /url "search-ms://query=ref123"

Now how can I do something similar in Windows 7?

Since Windows Search is not a component part of the OS, it is not longer installed in C:\Program Files and instead now consists of 3 different exes which are located in the System32 folder:
SearchIndexer.exe
SearchProtocolHost.exe
SearchFilterHost.exe

Anyone know how this can be done?

Thanks


My System SpecsSystem Spec
.
04 Dec 2009   #2
Diarmuid

Windows 7
 
 

Actually I am wrong in that SearchIndexer.exe, SearchProtocolHost.exe and SearchFilterHost.exe were also present in XP

So my problem is basically how do I call WindowsSearch.exe programatically in Windows 7 when it does not exist? Where can I find the built-in Windows 7 search application?
My System SpecsSystem Spec
04 Dec 2009   #3
fulanke

 
 

I am also trying to get answers re Windows Search in Windows 7 but don't seem to succeed (see thread Windows 7 Search issues). Can't believe that I am the only one having these problems.
My System SpecsSystem Spec
.

04 Dec 2009   #4
MrJukes

 

From the run dialog I just ran "search-ms://query=ref123" and it opened a search window with a query for "ref123".
My System SpecsSystem Spec
05 Dec 2009   #5
Diarmuid

Windows 7
 
 

The search will run from the Run dialog box. This is the built in functionality of Windows 7

However what I want to do is to call this programatically (i.e. using code). So I need to find out where the Windows Search exe is located (if it even exists)

Any ideas?
My System SpecsSystem Spec
Reply

 Calling Windows Search programatically




Thread Tools




Similar help and support threads
Thread Forum
Make windows search remember and search Drive C instead of favorites
PROBLEM: Whenever I do a search for something from the start menu what I want does not show up. When I click see more results on the start menu search box it opens a new Window, remembers my search term and searches in the favorites folder. ALWAYS. Needless to say what I am looking for does not...
Customization
Startup calling files
Dear Supporters, I have got windows 8 now, so if this is the wrong section let me know, however I'm sure the answer will be the same for both systems. I have installed some old drivers for my usb headset (Sound Blaster arena headset) but now when I start the machine up it tried to run...
General Discussion
Facebook Video Calling
For those Users who have Facebook you may be interested in Facebook Chats new edition of Video Calling Call Your Friends Right From Facebook | Facebook http://www.facebook.com/videocalling cqd_4KSbnJo
Chillout Room
Windows 7 search files and folders vs Outlook 2007 search
Hello, Can someone tell me some specifics and pinpoint the differences (or maybe a good website) that would pinpoint the differences between the Windows 7 search and the outlook 2007 search? I know the outlook search searches through email but are there other difference I am overlooking between...
General Discussion
Calling home
Please notice this post is only my own, personal and subjective opinion. I feel this subject is important enough to clearly voice my opinion, although I do not want to start an argument. We've had them enough. Like ET in Spielberg’s epic movie, today’s computers want to call home. Like ET, they...
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:00.
Twitter Facebook Google+