Copied log file filename
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.The value of the CopyFileID field is an integer from which a file name of the following 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 zeros 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).
Provide Feedback