Wscript.ScriptName

[This is preliminary documentation and subject to change.]

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

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.