Question: under the DOS command line in WINDOWS, how can I delete certain files older than N days? Thanks!
---------- Edited by willsort ----------
The solutions are as follows (the overall line of attack is in post 9):
1、use set /a to convert between dates and relative day counts, in order to get the target date by difference (post 22);
2、run it every day to keep updating the date list, and use the earliest date at the front of the list as the target difference date (post 11);
3、use a third-party tool to obtain and compare the target difference date (zybird, posts 17 and 19);
In addition, the code for deleting files before a fixed date has also been completed (Climbing, post 13).
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-9-2 at 15:35 ]
---------- Edited by willsort ----------
The solutions are as follows (the overall line of attack is in post 9):
1、use set /a to convert between dates and relative day counts, in order to get the target date by difference (post 22);
2、run it every day to keep updating the date list, and use the earliest date at the front of the list as the target difference date (post 11);
3、use a third-party tool to obtain and compare the target difference date (zybird, posts 17 and 19);
In addition, the code for deleting files before a fixed date has also been completed (Climbing, post 13).
---------- Edited by willsort ----------
[ Last edited by willsort on 2005-9-2 at 15:35 ]

DigestI
elete