Export (0) Print
Expand All
Expand Minimize

ScriptName Property

Returns the file name of the currently running script.

                      object.ScriptName

object

WScript object.

The ScriptName property is a read-only string.

The following VBScript code echoes the name of the script being run.

WScript.Echo WScript.ScriptName

Community Additions

ADD
Show:
© 2014 Microsoft