Microsoft® Windows® Script Host ScriptName Property |
WSH Reference Version 1 |
Provides the file name of the script currently being run.
object.ScriptName
Part Description object WScript object.
The following example echoes the name of the script being run:WScript.Echo WScript.ScriptName