::turn off the box from popping up

@echo off

::copy world contents to prevent in use errors

::Usage: xcopy 'directory of server world folder

xcopy "c:\Users\Administrator\Desktop\Minecraft-Server\world" "c:\Users\Administrator\Desktop\Backup-temp" /E /I

::Jump to 7-zip Directory

cd "c:\Program Files\7-zip"

::Set a variable to the current date and time as one long string with a '-' seperating the date and time

set clock=%DATE:/=-%-%TIME::=-%

::set a variable to the current time minus the day of the week

set file_time=%clock:~4%

::Use 7zip to create the archive and give it a name that is a date(From above)

7z.exe a -tzip c:\Users\Administrator\Desktop\World-Backup\"%file_time%.zip" c:\Users\Administrator\Desktop\Backup-temp\

::remove the copied world folder

::be careful this removes it without stopping

::usage: rmdir /S /Q 'same as temporary directory'

rmdir /S /Q c:\Users\Administrator\Desktop\Backup-temp

::Finds the files older than 7 days and then deletes them--> arguments

::/p is pathname of the search

::/d (date, -# = days old, += days in front[as in days after a starting date ex: +06/24/2011 would be everything after a date)

::where as -number is everything older then that date

::when a number is specified it goes from the current date otherwise you need to specify the current date in mm/dd/yyyy

::/c "cmd /c 'command to run'" tells what to do with that last (this example deletes the files)