If you script without objects you will quickly find that your options are fairly limited--unless you're content to work only with user input and never store anything even temporarily.
Now that we've started working with objects in the past two columns, the question is, how do you know if an object exists in a script if you haven't already seen an object in a script?
That was the question a clever reader posed to me recently. It was an especially good question in light of the many sources of objects that I've alluded to in my first couple of columns.
Scripting languages such as VBScript have several sources of objects: the
I briefly introduced objects, properties and methods in my first column, a beginner's guide to scripting. The next few columns will give you more background on the various sources of objects, and point you to some online resources.
Let's start with the Windows Script Host itself.
Scripting School: Find objects with Windows Script Host
- Windows Script Host objects
- Network resources and user/computer identity
- Running external scripts
- Working with the environment
Read all of Christa's scripting columns:
April 2005: Beginner's guide to scripting
May 2005: It's time to increase your scripting expertise
June 2005: Connect users to network resources
July 2005: More on connecting to network resources
August 2005: Find objects with Windows Script Host
September 2005: Windows Script Host arguments
October 2005: Scripting School: Turning the environment with WshShell
When Christa Anderson began working with Windows Server operating systems in 1992, she became increasingly interested in finding more efficient and flexible ways of performing routine tasks. Christa has written extensively about administrative scripting and taught technical sessions on the subject at conferences such as Comdex and CeBIT, helping people who had never done any scripting to write their own scripts in half a day. In addition to her interest in scripting Windows management, Christa is an authority on server-based computing and the program manager for Terminal Services licensing in Longhorn. If you have a scripting question for Christa, please e-mail her at scripting@SearchWinSystems.com.