Moving files based on sub-folder name (multiple sub-folders)

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

Moderator: Mr_Noodle

SOLVED!

Hey all. Appreciate some help with following challenge. Structure of folders/files is:

Source:
Folder A
Folder X
File 1
File 2
Folder Y
File 1
File 2
File 3
...

Target:
Folder B
Folder C

I want to move the files in Folder X to Folder B, and those in Folder Y to Folder C. I have individual rules for Folders X & Y already, and these work just fine. However, I would like to have a single set of rules for Folder A that deals with all sub-folders contained.

Appreciate any guidance on this.
Last edited by BobbyPlaysGames on Mon Jan 09, 2023 7:24 pm, edited 1 time in total.
BobbyPlaysGames
 
Posts: 4
Joined: Sat Jan 07, 2023 10:07 pm

What is the relationship between X and B as well as Y and C?
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:What is the relationship between X and B as well as Y and C?


I've since resolved. Key was not to look at Processing Subfolders in the help menu, but instead to look at Using Nested Conditions:

Rule 1: Go into subfolders
Rule 2: Move to Folder B
Code: Select all
If all of the following conditions are met
     If all of the following conditions are met for its enclosing folder
          Name is Folder X
     Move to Folder B


I have this repeated for 8 folders and files are moving flawlessly to their correct target locations.
BobbyPlaysGames
 
Posts: 4
Joined: Sat Jan 07, 2023 10:07 pm

Good to hear. You may want to check out Hazel's table functionality. It might be possible to consolidate those to one rule.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support