Lab 21b Using a More Complicated Where Clause

In this lab, you modify the Lab21aSolution.vbs file to use a more complicated Where clause.

Lab Instructions

  1. Open Notepad.exe.

  2. Open the Lab21aSolution.vbs file, and save it as Lab21bSolution.vbs.

  3. Modify the vWhere clause to include the requirement that the PID (Process ID) is greater than 100. Your completed vWhere line might look like the following:

    vWhere = " where threadCount > '10' and ProcessID >100"
  4. Save your script, and run it in CScript. Notice how many lines of data are returned.

  5. Modify the vWhere clause so that the PID must be greater than 1000. Your code will look like the following:

    vWhere = " where threadCount > '10' and ProcessID >1000"
  6. Save the script, and run it in CScript. Notice how the data ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.