I have the following BAT script:
REM Define file and folder locations
set z=c:\program files\7-zip\7z.exe
REM Zip all files and folders
"%z%" a -tzip "%DestZip%" -r "%BaseDir%\*.*"
This script grabs the contents of C:\TestFiles, compresses all the files and stores it in c:\OldLogs\output.zip. This is perfect, although i need the script to now:
1) Delete the old files from C:\TestFile where older than x days
2) The output.zip needs to increment each time the script is run, a time stamp would be ideal here:
and so on...