scripting:api:wscript:path

Path

Property of IWScript

Returns the name of the directory containing the host executable

Read-Only Property of type BSTR

var sVal = WScript.Path;

==== Visual Basic Script ====

sVal = WScript.Path

==== C++ ====

BSTR sVal;
HRESULT hr = WScript.get_Path(&sVal);

===== See Also ===== IWScript