Using the %currentlogfile and %currenttracelogfile Variables

<< Click to Display Table of Contents >>

Navigation:  Robo-FTP User's Guide > Script Programming > Internal Script Variables >

Using the %currentlogfile and %currenttracelogfile Variables

 

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 12 15.38.43 2012.xx.log

 

 

Related command(s): LOG, TRACELOG

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