Command-Line Arguments

Command-line arguments provide you with the ability to modify the execution of a script prior to running it.

In the Ping.vbs script, which you examined in Chapter 2, and which appears in the next code listing, you use the variable strMachines to hold the target of the ping command. To ping other computers on the network, you have to modify the values within the quotation marks (s1 and s2 in this instance). Modifying the values might be an ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide 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.