| TABLE 1: Windows Scripting Host Object Model
|
| Objects |
Methods |
Properties |
| WScript (wscript.exe) |
CreateObject, DisconnectObject, Echo, GetObject, Quit |
Application, Arguments, FullName, Name, Path, ScriptFullName, ScriptName, Version |
WshArguments (wscript.exe) Not exposed; use WScript.Arguments |
|
Item, Count, Length |
| WshShell (wshom.ocx) |
CreateShortcut, ExpandEnvironmentStrings, Popup, RegDelete, RegRead, RegWrite, Run |
Environment, SpecialFolders |
| WshNetwork (wshom.ocx) |
AddPrinterConnection, EnumNetworkDrives, EnumPrinterConnections, MapNetworkDrive, RemoveNetworkDrive, RemovePrinterConnection, SetDefaultPrinter |
ComputerName, UserDomain, UserName |
WshShortcut (wshom.ocx) Not exposed; use WshShell.CreateShortcut |
Save |
Arguments, Description, FullName, Hotkey, IconLocation, TargetPath, WindowStyle, WorkingDirectory |
WshUrlShortcut (wshom.ocx) Not exposed; use WshShell.CreateShortcut |
Save |
FullName, TargetPath |
WshCollection (wshom.ocx) Not exposed; use WshNetwork.EnumNetworkDrives or WshNetwork.EnumPrinter Connections |
|
Item, Count, Length |
WshEnvironment (wshom.ocx) Not exposed; use WshShell.Environment |
Remove |
Item, Count, Length |
WshSpecialFolders (wshom.ocx) Not exposed; use WshShell.SpecialFolders |
|
Item, Count, Length |