Output Information

Once you work through each case in the Select Case construction, you enter into a subroutine. Each subroutine is designed around the particular needs of various groups within your organization. The WScript.Echo commands let you know which subroutine is being run—these are primarily used for troubleshooting and can be either left in or deleted, depending on the type of customer experience your users are willing to put up with.

To map a network drive, you use the MapNetworkDrive command of a WshNetwork object. The important issue to keep in mind here is that assigning a drive letter requires a letter and a colon surrounded by double quotation marks. Next, a comma is required to separate the drive letter from the path statement. ...

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.