O'Reilly logo

Microsoft® VBScript Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required