First, run the CMD, input forfile / ?, to obtain the use of forfile
/ P path
/ M File Types
/ D Time + | - +: after -: prior example: -22 days before data
/ C command command
Second, the open notebook, write the following sentence
OFF @echo
FORFILES / P "E: \ database backup" / M * .html / D -2 / C "cmd / c del / F / s / q @file"
This means that the deleted path: E: \ database backup under the format of data html, two days ago.
If you need to back up the current can be changed to move
OFF @echo
FORFILES / P "E: \ database backup" / s / m * .html / d -2 / c "cmd / c move @path D: \ backup"
Then save the Notepad to save, change the suffix .bat.
Third, the development of regular implementation of the task plan, start the program select .bat file you just saved it.
Here is complete.