Web_log_rotator
@echo off
set source="C:\xampp\apache\logs"
set destination="C:\log"
set dd=%DATE:~0,2%
set mm=%DATE:~3,2%
set yyyy=%DATE:~6,4%
set curdate=%dd%-%mm%-%yyyy%
cd C:\xampp\apache\bin
httpd.exe -k stop
cd "C:\Program Files\7-Zip\"
7z a -tzip -ssw -mx1 -r0 %destination%\log_%curdate%.zip %source%\access.log
del C:\xampp\apache\logs\access.log
cd C:\xampp\apache\bin
httpd.exe -k start
pause