在Windows 7中以编程方式调用Windows搜索
我有一个软件应用程序,它具有自动调用Windows桌面搜索并将搜索参数传递给它的功能.在装有WDS的XP机器上,此方法可以正常工作
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
例如,您只需运行此命令,WDS就会搜索与"ref123"关联的每个文件:
"C:\ Program Files \ Windows Desktop Search \ WindowsSearch.exe" /url" search-ms://query = ref123"
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"
现在如何在Windows 7中做类似的事情?
Now how can I do something similar in Windows 7?
由于Windows Search不是操作系统的组成部分,因此不再安装在C:\ Program Files中,而是由System32文件夹中的3个不同的exe组成:
SearchIndexer.exe
SearchProtocolHost.exe
SearchFilterHost.exe
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
有人知道该怎么做吗?
谢谢
实际上我错了,因为XP中还存在SearchIndexer.exe,SearchProtocolHost.exe和SearchFilterHost.exe. >
所以,我的问题基本上是当不存在Windows 7时,如何在Windows 7中以编程方式调用WindowsSearch.exe?在哪里可以找到内置的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?