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
Windows 7 search for files&folders...can i make it search like XP?
I asked this when i first got 7 about 1.5 years ago, but i never found a good replacement to make 7's file search anywhere near as good or similar as the XP search. Now 1.5 year later, is there anything like that?
General Discussion
Need XP-style search program to replace the Windows Seven search
I will only buy one, if I have no choice, but I do not feel that I should have to in order to replace something that came with Windows 7 and should have worked in the first place. Everything is not anything close to the search interface that was in Windows XP. I tried Google. All of the...
Software
Windows "is calling home"
I'm well aware of how to secure Windows from external threats, but i'm wondering how i can secure my system from the system itself. Windows and related software is constantly giving away info about what's on my computer, what i'm doing and my hardware/software etc. How can i turn of these things?...
System Security
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 23:16.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App