Appendix G. The Windows Script Host Object Model

This appendix gives details about the Windows Script Host objects. You can find further details and examples in Chapter 12.

Windows Script Host has fifteen objects outlined.

Object

Description

Scripting.Signer

Allows a script to be digitally signed so that the recipient can verify authenticity and trust.

WScript

Provides access to most of the objects, methods, and properties contained in the WSH object model.

WshArguments

Gives the programmer access to the entire collection of command-line parameters in the order in which they were originally entered.

WshController

Exposes the method CreateScript() that creates a remote script process.

WshEnvironment

Gives the programmer access to the collection of Microsoft Windows system environment variables.

WshNamed

Provides access to the named command-line script arguments contained within the WshArguments object.

WshNetwork

Gives the programmer access to the shared resources on the network to which the host computer is connected.

WshRemote

Provides access to the remote script process.

WshRemoteError

Used to expose the error information available when a remote script terminates as a result of a script error.

WshScriptExec

Provides status and error information about a script.

WshShell

Use to give the programmer access to the native Windows shell functionality.

WshShortcut

Allows the programmer to create shortcuts.

WshSpecialFolders

Used to access Windows Special Folders.

WshUnnamed

Provides access to unnamed command-line script ...

Get VBScript Programmer's Reference, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.