@ECHO OFF REM Replace space in hour with zero if it's less than 10 SET hr=%time:~0,2% IF %hr% lss 10 SET hr=0%hr:~1,1% REM This sets the date like this: mm-dd-yr-hrminsecs1/100secs Set TODAY=%date:~4,2%-%date:~7,2%-%date:~10,4%-%hr%%time:~3,2%%time:~6,2%%time:~9,2% REM Use 7Zip to Zip files in folder c:\testzip and place the zip archive in C:\testmove ECHO. ECHO Zipping all files in C:\testzip and moving archive to c:\testmove ECHO. 7za a -tzip "C:\testmove\xxxx_%TODAY%.zip" "C:\testzip\*.*" -mx5 ECHO. ECHO Delete the files in orginal folder DEL "C:\testzip\*.*" PAUSE