Chapter 2. Looping Through the Script
Before You Begin
To work through the material presented in this chapter, you need to be familiar with the following concepts from Chapter 1:
How to run a script
How to declare a variable by using the Dim command
How to perform basic error suppression by using On Error Resume Next
How to connect to the file system object
How to read from the registry
After completing this chapter, you will be able to:
Use For Each...Next
Define constants
Implement collections
Use For...Next
Control script execution by using the Sleep command
Implement line concatenation
Use Do While...Loop
Use Do Until...Loop
Adding Power to Scripts
Reading the registry and echoing the results on the screen are useful tasks. At times, however, you need to perform ...
Get Microsoft® VBScript Step by Step 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.