WScript Object
FullName Property
Path Property
ScriptFullName Property
Property: WScript.ScriptName
WScript.
ScriptName
The
ScriptName
property is read only and returns the filename of the script currently being executed.
The following VBScript code illustrates the use of this property inside a script called "test.vbs".
Code:
WScript.Echo "Name of current script =", WScript.ScriptName
Output:
Name of current script = test.vbs
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information