ZipLogFiles.exe

SUMMARY

ZipLogFiles.exe creates the zip-File ‘LogFilesYYYYMMDDhhmmssttt.zip’ by zipping file_1 files_2 ...

SYNTAX

ZipLogFiles <max_num_files> <file_1> <file_n>

OPTIONS

max_num_files
On creating a new log file it is checked whether other zip files (LogFiles*.zip) exist. So as not to fill the hard disc by writing a vast number of Zip-Files the oldest Zip-File is deleted in case the number ‘max_num_files’ is reached.
file_1 file_n
Defines the Log files to be zipped. Folders and Wildcards may be used.

Format of the log file:
LogFilesYYYYMMDDhhmmssttt
Fixed Part - Date and Time when "ZipLogFiles.exe" was started.

DESCRIPTION

"ZipLogFiles.exe" zips the files defined as ‘file_1’ to ‘file_n’ and stores them as ‘LogFilesYYYYMMDDhhmmssttt.zip’. If the environment variable “ABLOGFILEDIR” exist the file is stored as defined there, otherwise it is saved in the actual directory.

EXAMPLES

 
ZipLogFiles.exe 10 c:\vision\prcsnt\*.err c:\vision\Logfiles\*.log
--> Zip-Datei: 
LogFiles20090907142945123.zip
All "*.err" files from the 'c:\vision\prcsnt' directory and all "*.log" files from the 'c:\vision\Logfiles\' directory were zipped. It was cchecked that no more as 10 'LogFiles' exist. The log file was created in 2009/09/07 at 14:29 and 45,123 seconds.


Syntax Notation
[aaa]
aaa is optional (zero or one occurences)
(aaa|bbb)
aaa exclusive or bbb
(aaa)*
aaa may occur indefinitely often or may be omitted
(aaa)+
aaa may occur indefinitely often but at least once
(aaa)m..n
aaa may occur from m to n times