Scripting Home > WSH Reference Guide

WScript.Shell Object

Description

The WSript.Shell object provides functions to read system information and environment variables, work with the registry and manage shortcuts.

Example

'VBScript Example
Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run("%windir%\notepad.exe")

ReturnCode = WshShell.Run("%windir%\notepad.exe", 1, True)