Select Case

When I see a Select Case statement in a VBScript, my respect for the script writer goes up at least one notch. Most beginning script writers can figure out the If...Then statement, and some even get the If...Then...Else construction down. However, few master the Select Case construction. This is really a shame, because Select Case is both elegant and powerful. Luckily for you, I love Select Case and you will be masters of this construction by the end of this chapter!

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.