Name the log file copy

The value of the CopyFileID field is an integer from which a file name in this format is generated:
<nnn>.LOG
where <nnn> is the value of the CopyFileID field obtained from the
Batchsvr.ini
file, with leading zeros. The leading zeroes help sort the files when viewed from Windows Explorer or a similar program. Every time the
FactoryTalk Batch
Server uses this value to generate a name for a copied log file, it increments the integer value stored in the field. An attempt to increment the integer beyond a value of 999 results in a wrapping of the value back to one.
If this value is not present or is invalid, then a current value of one (1) is assumed. This results in the creation of a log file copy with the name
001.log
and the updating of the field to a value of two (2).
If the
FactoryTalk Batch
Server generates a name for a copied log file, and the file name already exists in the directory where the copy is to be stored, the Server attempts to create a new name for the copied log file. The Server generates new log file names by incrementing the CopyFileID value until an unused file name is found. The integer used to generate this file name is incremented one last time and this value stored into the CopyFileID field in the
Batchsvr.ini
file. If no unused file names are found, then the Server is forced to overwrite the file name generated with the CopyFileID field’s original value.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal