This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:windows:del_files_older [2011/11/07 12:59] gcooper |
computing:windows:del_files_older [2011/11/07 13:10] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Delete Files Older Than ====== | + | ====== Delete Files Older Than X Days on Windows====== |
http:// | http:// | ||
Line 5: | Line 5: | ||
http:// | http:// | ||
- | This will delete all files in my backup directory older than 3 days: | + | This will delete all files in a backup directory older than 3 days: |
< | < | ||
Line 11: | Line 11: | ||
</ | </ | ||
- | Syntax for Windows 2008: | + | To test it first, this will print out each file that you will be deleting: |
< | < | ||
- | forfiles | + | forfiles |
</ | </ | ||
- | To test it first, use this: | + | Syntax for Windows 2008: |
< | < | ||
- | forfiles | + | forfiles |
</ | </ | ||
- | This will print out each file that you will be deleting. |