Move files to sub folders

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Move files to sub folders Thu May 12, 2022 10:54 am • by Kernotone
Hi
Newbie here. I have searched the forum and read the manual but still can't make things work. I have a folder that receives a backup from one program using two files. All the files are date stamped but have a common name, so

RB_Filename_Datestamp_extension
RB_Filename_Datestamp_extension
RB_Filename_Datestamp_extension
RB_Filename_Datestamp_extension
T&S_Filename_Datestamp_extension
T&S_Filename_Datestamp_extension
T&S_Filename_Datestamp_extension

What I am TRYING to do is simply move the latest 5 files of each name to a new sub folder and delete the older ones. Can I make it work? NO!
Can anyone help a novice?
I hope so.
Many thanks...
Kernotone
 
Posts: 8
Joined: Thu Mar 08, 2018 1:12 pm

Re: Move files to sub folders Fri May 13, 2022 9:35 am • by Mr_Noodle
Try something like "Date added is not among the 5 most recent, Move to trash". That will get rid of the old ones. You can then move the remaining ones where you want.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Move files to sub folders Fri May 13, 2022 11:21 am • by Kernotone
Many thanks for that. My problem is I want to keep the five latest of each filename and the RB files change very infrequently and the T&S files change maybe two or three times a day. So using 5 latest does not seem to work for me? Or am I wrong?
Kernotone
 
Posts: 8
Joined: Thu Mar 08, 2018 1:12 pm

Re: Move files to sub folders Mon May 16, 2022 8:59 am • by Mr_Noodle
Do separate rules for each file type, with a condition where it matches the name. When paired with a "is among" condition, it will only apply to files which matched that other condition.
Mr_Noodle
Site Admin
 
Posts: 11193
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support