C:\ErrorLog\TraceLog.log {
daily
compress
copytruncate
prerotate
@echo off
echo This is a test
echo parameter pass %1
VER | TIME > TEMP.BAT
ECHO SET TIME=%%3>CURRENT.BAT
DEL TEMP.BAT
DEL CURRENT.BAT
ECHO It's %TIME% now
endscript
}
I have used above config file but my log file is not compressing.. am i missed any thing
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
C:\ErrorLog\TraceLog.log {
daily
compress
copytruncate
prerotate
@echo off
echo This is a test
echo parameter pass %1
VER | TIME > TEMP.BAT
ECHO SET TIME=%%3>CURRENT.BAT
DEL TEMP.BAT
DEL CURRENT.BAT
ECHO It's %TIME% now
endscript
}
I have used above config file but my log file is not compressing.. am i missed any thing