Calling WDS from the Command Line
You can launch the Microsoft Windows Desktop Search (WDS) user interface with a specific filter, store, and query from another application or a Web page that uses the Browser Helper Object (BHO) by using the windowssearch.exe command line syntax. When calling WDS from the command line, no information about the user's actions or selection in the WDS window is returned to the calling application or Web page.
The WDS installation path is specified in the InstallDir registry setting under HKLM\Software\Microsoft\Windows Desktop Search. The default path that windowssearch.exe is installed to is Program Files\Windows Desktop Search.
Command Line Syntax
The following syntax applies to the Windows Desktop Search 2.x command-line interface.
Options | Parameter | Meaning |
---|---|---|
/startup | Inisitalizes Windows Desktop Search | |
/indexnow | Turns off indexing back-off and rescans all index locations | |
/showstatus | Shows the indexing status window | |
/launchsearchwindow or /url | Opens a WDS window with an empty query | |
/url | search:[store|show|query] query string | Opens a WDS window with a query and filter based on the following parameters:
|
Example
For example, to search all files for pictures matching the criteria 'wallpaper' use the following command:
WindowsSearch.exe /url search:store=files&show=pictures&query=wallpaper