Performing Other Operations with WSH

WSH makes it possible to manipulate any Automation object installed on your computer. In addition to accessing the file system through FileSystemObject, WSH allows you to perform such tasks as handling WSH and ActiveX objects, mapping and unmapping printers and remote drives, manipulating the registry, creating Windows and Internet shortcuts, and accessing the Windows NT Active Directory service. The WSH object model is made of the following three main objects: WScript, WshShell, and WshNetwork. This section demonstrates how you can take advantage of the WshShell object to write procedures to start other applications and create shortcuts.

0 0

Post a comment