Chapter 23

Using the Scripting Objects

In this chapter, you will learn to:

  • Use the WScript Object
    • Use the WScript Properties
    • Use the WScript Methods
  • Use the WScript.WshArguments Object
  • Use the WScript.WshShell Object
  • Use the WScript.WshNetwork Object
    • Use the WScript.WshNetwork Properties
    • Use the WScript.WshNetwork Methods
  • Create a Basic Script
    • Script the Command Line and System Environment
    • Script the Registry
    • Create .LNK Files

If you had to try to create all of the supporting code used to write a script by hand, you’d be working quite hard and for a long time. Fortunately, someone has already written a considerable amount of code for you. This code appears within objects, which you can think of as boxes that hold code and data. ...

Get Windows® Command-Line Administration: Instant Reference 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.