WSFromScript

The WSFromScript code sample demonstrates how to query Windows Search from a Microsoft Visual Basic script using Microsoft ActiveX Data Objects (ADO).

This topic contains the following sections.

Requirements

ProductMinimum Product Version
WindowsWindows Vista, or Windows XP and Microsoft Windows Desktop Search (WDS) 3.x or greater
Windows SDK7.0

 

Downloading the Sample

This sample is available in the following locations.

LocationPath URL
Code GalleryWSFromScript sample
Windows 7 SDKDownload Windows 7 SDK

 

 

Note  After you have downloaded and installed the Windows Software Development Kit (SDK), you will find the samples in the installed directory. For example, use of the default installation path for the Windows 7 software development kit (SDK) results in the samples being placed under C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples.
 

Building the Sample

To build the sample from the Command Prompt window:

  1. Open the Command Prompt window and navigate to the QueryEverything project directory. For example, the full default installation path is C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\WinUI\WindowsSearch\WSFromScript.
  2. Enter cscript QueryEverything.vbs.

Related topics

Conceptual
Search Code Samples
Other Resources
VBScript Language Reference

 

 

Show: