scripting:api:wscript:name

Name

Property of IWScript

Returns the fully qualified path of the host executable

Read-Only Property of type BSTR

var sVal = WScript.Name;
sVal = WScript.Name
BSTR sVal;
HRESULT hr = WScript.get_Name(&sVal);