BAT files deleted more than xx days

@echo off
before deleting echo n days Backup file and log
FORFILES / P "C: \ ShareF" / m * .zip / D -7 / C "cmd / del C @path"
FORFILES / P "C: \ Share "/ m * the .docx / D -7 / C" cmd / del @path C "
echo logical backup is being performed, please wait ......
PAUSE
echo task is completed!

 

-7: Number of heaven

.zip: File Types

Guess you like

Origin www.cnblogs.com/gguozhenqian/p/11598994.html