ScriptName
Property of IWScript
Description
Returns the file name of the currently running script
Property type
Read-Only Property of type BSTR
Syntax
JavaScript
var sVal = WScript.ScriptName;
Visual Basic Script
sVal = WScript.ScriptName
C++
BSTR sVal; HRESULT hr = WScript.get_ScriptName(&sVal);