Microsoft® Windows® Script Host
ScriptName Property
WSH Reference
Version 1

See Also                      Applies To


Description
Provides the file name of the script currently being run.
Syntax
object.ScriptName
Parameters
Part Description
object WScript object.
Example
The following example echoes the name of the script being run:
WScript.Echo WScript.ScriptName