次の方法で共有


ScriptName Property

Returns the file name of the currently running script.

                      object.ScriptName

Arguments

  • object
    WScript object.

Remarks

The ScriptName property is a read-only string.

Example

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

WScript.Echo WScript.ScriptName

See Also

Reference

ScriptFullName Property

WScript Object