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

Post Reply
ldechiron
Newbie
Posts: 1
Joined: Wed Jan 30, 2013 2:24 pm

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

Post 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.
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

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

Post 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
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

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

Post 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
Rob
Newbie
Posts: 1
Joined: Fri Dec 16, 2011 2:25 pm

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

Post by Rob »

So helpful, thank you for adding that info Freddy
Post Reply