The ScriptName property is read only and returns the filename of the script currently being executed.
WScript.Echo
"Name of current script =", WScript.ScriptNameName of current script =
test.vbsThis VBScript code illustrates the use of this property inside a script called "test.vbs".