custom matching - move 1 folder contents to another folder

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

Moderator: Mr_Noodle

Hi, I am trying to add a new custom matching rule.

Folder 1: Contains 1 file to move
Folder 2: Folder to receive the file
Both Folder 1 and Folder 2 are in the same parent folder

In a directory there are many folders, and 2 of the folders I would like to work with (Folder1, Folder2). These 2 folders have identical beginning of the folder name e.g. first 6 characters. The remaining of the name is different.

I wish to move 1 file from folder1 into folder 2. Folder1 only ever has 1 file.

This is what I have so far:

IF: ALL
Kind is Folder
Name matches -a1a1a1a1a1a1- (using attribute function to create a variable I think)

DO: the following with the matched folder
Run Rules on Folder Contents
Sort into subfolder with pattern name... (... means anything) [trying to match the other folder on name like 'variable created above'

(screenshot attached of the rule)

It is sorta working.
ABOVE results in moving Folder1 AND the enclosed file to Folder2
Rather I wanted, to move the enclosed file from Folder1 to Folder2.

Image

Thankyou for any assistance and your time and effort.
regards,
NoodleNewbie
 
Posts: 34
Joined: Fri Jul 13, 2018 5:17 pm

Read the manual on subfolders. You do not want to combine folder logic with file logic in this case. You need to split it up into separate rules. The chapter in the manual has more details.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thankyou. All done now.

Simplified the rule.

Rule 1:
Purpose to move the file into my "working folder"= FOLDER1
removed any sorting into sub-folders.

Rule 2: (on Working Folder, FOLDER1)
IF: ALL
Name matches Ba1a1a1a1a1a1...
Extension is xxx

DO: the following with the matched folder
Sort into subfolder with pattern -name ...

(... means anything)
NoodleNewbie
 
Posts: 34
Joined: Fri Jul 13, 2018 5:17 pm


Return to Support

cron