|
An A-Z Index of WSH commands
SYNTAX Variables, Functions, Operators, Conditional and looping Statements How to install and run a WSH script. COMMANDS Arguments, display - WshArguments.Item (also Count and length) Command, .Run command Command, .Exec execute command Command, .AppActivate activate running command .CurrentDirectory Echo text .Echo Echo text to StdOut.Write Echo, popup .Popup Environment, read env variables - .Environment Environment, expand env variables - .ExpandEnvironmentStrings Environment, delete env variables - .WshEnvironment.Remove Environment, echo .ComputerName Environment, echo .UserName Environment, echo .UserDomain Log an item in the Event log .LogEvent Object, create - .CreateObject Object, get - .GetObject Object, disconnect - .DisconnectObject NET, net use drive - .MapNetworkDrive NET, list drive mappings - .EnumNetworkDrives NET, remove drive map - .RemoveNetworkDrive Path of wscript.exe - .Name Pathname of wscript.exe - .FullName Pathname of script being run - .ScriptFullName Path to desktop,start menu.. - .SpecialFolders Printer, add printer - .AddPrinterConnection Printer, add Network printer - .AddWindowsPrinterConnection Printer, list printers - .EnumPrinterConnections Printer, set default printer - .SetDefaultPrinter Printer, remove printer - .RemovePrinterConnection Quit - .Quit Registry, delete - .RegDelete Registry, read - .RegRead Registry, write - .RegWrite Send Keys - .SendKeys Shortcut,create - .CreateShortcut Sleep - .Sleep text input - .ReadLine text output - .Write Version of wscript - .Version All the syntax on this page assumes you have WSH version 5.6 or greater. The examples assume the use of VB Script rather than java script. Some basic naming conventions. Other sources of help...