Delete directories by date range

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
samsterman1
Junior Member
Junior Member
Posts: 2
Joined: 2012-11-17, 01:07 UTC

Delete directories by date range

Post by *samsterman1 »

I understand there are limitations to DOS directory date operations, but thought I'd ask... Is there a way in TC to clean up old data by selecting folders - not files - by date range? I've looked and can't find that functionality anywhere. I can find files by date, and delete them but then I have all the empty folders left. So far I've only been able to find files by date then copy their folders paths to clip board, delete files then modify clip board file with DOS delete coding into a batch file. I'm hoping there is a more efficient way? Thanks in advance.
User avatar
petermad
Power Member
Power Member
Posts: 16147
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Try this

1. Press Alt+F7 to open the Find Files dialog.
2. Click the Advanced tab.
3. Fill out the fields "Date between" + "and".
4. Click the "Attributes" checkbox.
5. Click the "Directory" checkbox twice.
6. Click the "Start search" button
7. After the search is completed click the "Feed to listbox" button.
8. Mark all the found folders and press F8 to delete them.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
samsterman1
Junior Member
Junior Member
Posts: 2
Joined: 2012-11-17, 01:07 UTC

Post by *samsterman1 »

That worked great. What a difference that 'twice' made :). Great time-saver. Thanks for the info.
Post Reply