GetLogName

Top  Previous  Next

×V2.1Ø

S

A

W

WS

ü

Syntax -

GetLogName <Variable Name> <FileID>

       Where:

               <Variable Name> is the user defined name that is assigned to the variable.

               <FileID> is a literal string, a variable that contains a literal string or an integer, a variable that contains an integer or an unquoted user defined name assigned to the file

 

Description:

This command stores the path and file name associated with the specified <FileID> into <Variable Name>.

 

Note: This command is especially useful if the log file includes time and date stamps and therefore, the filename is unknown.

 

Sample 1:

       The following statement opens a new log file using the command OpenLog and sets the <FileID> to "File 1" and then uses GetLogName to determine that filename.

OpenLog "File 1" "C:\EMUE\Script1\LogFiles\Log_#TIME#_#DATE#.txt"

GetLogName file1 "File 1"

 

Sample 2:

       The following statement opens a new log file using the command OpenLog and sets the <FileID> to Output and then uses GetLogName to determine that filename.

OpenLog Output "C:\EMUE\Script1\LogFiles\Log_#TIME#_#DATE#.txt"

GetLogName file1 Output

 

See Also:

OpenLog

WriteLog

WriteLogLine

CloseLog