APGen Documentation Previous Topic: Script.Error Event Next Topic: Script.Dir Parent Topic: Script Object    Script Object
Script.Filename
See Also:

The Script.Filename property returns the filename of the root APG script being executed.

Syntax

VBScript:

sFilename = Script.Filename

JScript:

sFilename = Script.Filename;

Object

Script The Script object.

Return Value

sFilename The file name of the root APG script.

Notes

When an APG script is running, there may be more than one script file involved.  An APG script is explicitly executed, and all of its include files (and its include files' include files) are also loaded and executed.  The root APG script is the APG script that is explicitly executed - its include files form a tree structure from it.  The Script.Filename property, along with the Script.Dir and Script.Path properties, return path information about the root APG script.

Applies To

Script Object