kaviya - 2016-12-16

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