The WshShell object
exposes some of the common shell functionalities of Microsoft Windows,
making it easy to creates shortcuts, access the environment variables,
run applications, access system registry, and more.
The WshShell object is not instantiated automatically upon
script execution, hence it must be instantiated explicitly using
CreateObject before it can be used.
Syntax: WshShell.Environment([strType])
The Environment property is read only and returns a WshEnvironment object.
Syntax: WshShell.SpecialFolders
The SpecialFolders property is read only and returns a WshSpecialFolders object.
Syntax: WshShell.AppActivate (strTitle)
The AppActivate method activates an application.
Syntax: WshShell.CreateShortcut (strPathName)
The CreateShortcut method creates and returns a WshShortcut object.
Syntax: WshShell.ExpandEnvironmentStrings (strString)
The ExpandEnvironmentStrings method expands the environment variables in a string and returns the resulting string.
Syntax: WshShell.LogEvent (intType, strMessage [,strTarget])
The LogEvent method logs an event in the Windows NT event log or WSH.log file.
Syntax: WshShell.Popup [,intSecondsToWait] [,strTitle] [,intType]
The Popup method displays a pop-up message box.
Syntax: WshShell.RegDelete (strName)
The RegDelete method removes a registry entry based on strName.
Syntax: WshShell.RegRead (strName)
The RegRead method reads and returns a
registry entry based on strName.
Syntax: WshShell.RegWrite (strName, varValue [,strType])
The RegWrite method writes a new entry into the registry.
Syntax: WshShell.Run (strCommand [,intWindowStyle] [,bWaitOnReturn])
The Run method runs an application in a new process.
Syntax: WshShell.SendKeys (strKeyString)
The SendKeys method sends keystrokes to the active window. Similar to VB's SendKeys statement.