@echo off
FOR /F "tokens=1-4 delims=/ " ^%%I IN ('DATE /t') DO SET currdate=^%%L^%%J^%%K
set path_backup=d:\mfec\backup\log\app\
set path_access=d:\mfec\ingress\log\Access\
set path_transaction=d:\mfec\ingress\log\Transaction\
set name_access=access%currdate%.log
echo start backup >>%path_backup%backup.log
echo ####Access####>>%path_backup%backup.log
cd %path_access%
rar a %path_backup%%name_access%.rar %name_access%>>%path_backup%backup.log
echo y|del %path_access%%name_access%>>%path_backup%.log
cd\