Share via


Path Property (Windows Script Host) 

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

The following VBScript code echoes the directory where the executable file resides.

WScript.Echo (WScript.Path);

Applies To:

WScript Object

See Also

Reference

FullName Property (WScript Object)