Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the file name of the currently running script.
Syntax
object.ScriptName
Arguments
- object
WScript object.
Remarks
The ScriptName property is a read-only string.
The following VBScript code echoes the name of the script being run.
WScript.Echo WScript.ScriptName