WshShell Object

ProgID Wscript.WshShell
File name WSHom.Ocx
CLSID F935DC22-1CF0-11d0-ADB9-00C04FD58A0B
IID F935DC21-1CF0-11d0-ADB9-00C04FD58A0B

The following table describes the properties associated with the WshShell object.

Property Description
Environment Returns the WshEnvironment collection object.
SpecialFolders Provides access to Windows shell folders such as the desktop folder, Start menu folder, and personal document folder, using the WshSpecialFolders object.

The following table describes the methods associated with the WshShell object.

Method Description
CreateShortcut Creates a WshShortcut object and returns it.
ExpandEnvironmentStrings Expands a PROCESS environment variable and returns the result string.
Popup Displays a message box window containing a specified message.
RegDelete Deletes a specified key or value from the registry.
RegRead Returns a specified key or value from the registry.
RegWrite Sets a specified key or value in the registry.
Run Creates a new process that executes a specified command with a specified window style.