scripting:api:wscript:full-name

FullName

Property of IWScript

Returns the fully qualified path of the host executable

Read-Only Property of type BSTR

var sVal = WScript.FullName;
sVal = WScript.FullName
BSTR sVal;
HRESULT hr = WScript.get_FullName(&sVal);