Using the %currentlogfile and %currenttracelogfile Variables

Top  Previous  Next

 

The current script log file is always saved and updated in the %currentlogfile script variable. The same is true for the current trace log file and the %currenttracelogfile variable.

 

Usually knowing the name of a current log file is not an issue. However, under certain circumstances Robo-FTP can automatically name a log file (i.e., when the /new option is specified on the LOG or TRACELOG commands) and without these script variables there would be no way for your script to know the file named created.

 

This is an example of how the %currentlogfile variable might be used.

 

LOG "mylog.xx.log" /new  

DISPLAY %currentlogfile

%currentlogfile = mylog Wed Oct 11 15.38.43 2005.xx.log

 

 

Related Command(s): LOG, TRACELOG

See Also: Internal Script Variables, Configurator Logging Menu, Basic Logging