Syntax
CurrentScriptFileDescription
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 logfileThe above script fragment writes an error message to a log file including the filename of the executing script.