WSH » WScript » ScriptFullName

Syntax:
WScript.ScriptFullName

The ScriptFullName property is read only and returns the full path to the script currently being executed.

Examples

Code:
WScript.Echo "Path to current script =", WScript.ScriptFullName
Output:
Path to current script = C:\test.vbs
Explanation:

This VBScript code illustrates the use of this property inside a script called "test.vbs" located in the root directory of the C: drive.

Language(s): VBScript

See Also: