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;
sVal = WScript.Path
BSTR sVal;
HRESULT hr = WScript.get_Path(&sVal);