Wscript.ScriptName

The ScriptName property provides the file name of the script being run by the Windows Scripting Host.

Syntax

Wscript.ScriptName = strScriptName
 

Example

Wscript.ScriptName = Sample.VBS
 

See Also

Wscript.ScriptFullName property