WshShell Object

[This is preliminary documentation and subject to change.]

ProgID Wscript.WshShell
Filename 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 Pops up a message box window containing a specified message.
RegDelete Deletes, from the registry, a specified key or value.
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.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.