Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the name of the directory containing the host executable (CScript.exe or WScript.exe).
object.Path
Arguments
- object
WScript object.
Remarks
The Path property is a read-only string.
Example
Description
The following VBScript code echoes the directory where the executable file resides.
WScript.Echo (WScript.Path);