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

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

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

 
 

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

 

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

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 for2: Calling Windows Search programatically
Thread Forum
Windows 7 search for files&folders...can i make it search like XP? General Discussion
Solved Need XP-style search program to replace the Windows Seven search Software
Programatically edit ntuser.dat Installation & Setup
Windows "is calling home" System Security
Windows 7 search files and folders vs Outlook 2007 search General Discussion
Calling home 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 01:48 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33