Page 1 of 1

[how to] Sort and dispatch files according to their name

Posted: Wed Jan 30, 2013 3:03 pm
by ldechiron
Hi !



I'd like to know how i can manage a lot of file arriving on a unique folder to dispatch them in different folders according to their name (prefix).



For example receiving files named :

AA_Test1

AA_Try2

AA_Essai

BB_001

BB_Nom1

CC_Test01

...



I'd like to see them move, all the "AA_" files in an "AA" folder on my network, same for the "BB_" files in a "BB" folder, etc ...



I've first made a flow using the "Include/Exlude" with variable in the junction line but it makes a lot of folder/line, ...

So i'd like to know if there's a simpliest way to do it ...



Thank's a lot for your answer or may be example flow.

Laurent D.

[how to] Sort and dispatch files according to their name

Posted: Wed Jan 30, 2013 6:39 pm
by dkelly
You could create a flow like this:







The Sort Jobs has a 'single line text with variables' set to [Job.NameProper:Before=_]



Name each connection with the desired prefix. Sort Jobs will automatically route to the correct connection.



Dwight Kelly

Apago, Inc.

dkelly@apago.com

[how to] Sort and dispatch files according to their name

Posted: Thu Jan 31, 2013 4:06 pm
by freddyp
It depends on what you want. With Dwight's solution the AA, BB, ... folders are predefined accepted folder names. CC ends up in "Other".



An alternative is that you use "Set hierarchy path" with the variable as Dwight described in "Path segment 1", and followed by "Archive hierarchy". When the directory does not exist, it will be created. CC_something.pdf will create the directory CC, but 1234_abc.pdf will also create the directory 1234.



Freddy

[how to] Sort and dispatch files according to their name

Posted: Wed Apr 17, 2013 2:18 pm
by Rob
So helpful, thank you for adding that info Freddy