在Windows 7中以编程方式调用Windows搜索 [英] Calling Windows Search programatically in Windows 7

查看:115
本文介绍了在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?


这篇关于在Windows 7中以编程方式调用Windows搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆