Previous Section Table of Contents Next Section

Review

In this chapter, you've learned to write scripts that can evaluate various criteria and change the execution of the script accordingly. You can use the If…Then construct to evaluate logical conditions and execute different sections of script depending on those conditions. Select…Case is a sort of super If…Then construct, allowing your script to evaluate a number of possible conditions and execute script code accordingly.

You also learned how to write loops, such as Do…Loop and For…Next. These constructs allow your script to execute specific lines of code over and over, while evaluating logical criteria to determine when the repetitive execution should stop. Finally, you learned how to use For Each…Next to iterate through a collection of objects, making it easier to work with collections.

That's about all there is to VBScript! You've already learned about functions, statements, objects, and variables (in Chapter 5), which provide the basis of VBScript's operations. You also learned how to collect user input and display messages (in Chapter 6), which provides your script with interactivity. Chapters 7, 8, and 9 covered how to manipulate various types of data within your script. With all of that under your belt, you're ready to start "gluing together" various operating system objects and writing truly functional administrative scripts.

COMING UP

Incredibly, you have finished learning VBScript. Now, you can start learning about the various objects that provide access to key operating system features. You'll begin with the built-in scripting objects in the next chapter, and move on to the FileSystemObject in Chapter 12.

    Previous Section Table of Contents Next Section