PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Miscellaneous

CurrentScriptFile

Syntax

CurrentScriptFile

Description

An instrinsic variable in which the full pathname of the currently executing script file is maintained. This variable should never be updated in a script.

Example

OpenFile logfile "C:\Errorlog.txt"
AppendFile logfile "Error occurred in " & (PathFilename CurrentScriptFile) & "."
CloseFile logfile

The above script fragment writes an error message to a log file including the filename of the executing script.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.