merging files/folder with similar name

Discuss RoboTask here
Post Reply
merle
Posts: 15
Joined: Thu Sep 21, 2006 5:48 pm

merging files/folder with similar name

Post by merle »

Extreme NEWB here:Merging
files/folder with similar name

I have a folder that has a lot of files (pdf and txt and
html) that are very similar.
For example I have:
c:\recipes
in the recipes folder I have files all about apples
some may be named "apple, pie - best home made.txt"
the next named "apple, pie - secret of the best.pdf"I would like to have it look at the first word, second word and then create a
folder called apple, pie and then merge them into apple, pie folder. If there
is a folder already made called "apple, pie - recipes of the best" I
would also like it to move it into the root folder of "apple, pie"
Then if it comes to the next recipe named "cherry, pie - best home
made.txt"
and the next named "cherry, pie - secret of the best.pdf"
to once again have it : look at the first word, second word and then create a
folder called cherry, pie and then merge them into cherry, pie folder. if there
is a folder already made called "cherry, pie - recipes of the best" I
would also like it to move it into the root folder of "cherry, pie"
and of course if  finds a dupe that it
just over right the file\folderThanks ever so much.Merle
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

merging files/folder with similar name

Post by Oleg »

Very interesting problem. I'll try to write the task some later, OK?

But there will be some restrictions:
   - names of files must contain more than two words;
   - first two words must define the category of file.
merle
Posts: 15
Joined: Thu Sep 21, 2006 5:48 pm

merging files/folder with similar name

Post by merle »

Thanks that would be great. And as you listed of the restrictions would work out for me!
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

merging files/folder with similar name

Post by Oleg »

See this task. It moves files from "c:\incoming" folder to "c:\recipes" into corresponding subfolders.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

merging files/folder with similar name

Post by Oleg »

Also you can attach "File monitor" event to the task in order to force RoboTask to sort files automatically.
merle
Posts: 15
Joined: Thu Sep 21, 2006 5:48 pm

merging files/folder with similar name

Post by merle »

Works great! I have it adding a coma now between the first two names.I have already have quite a few folders that have recipes in them. When I put the existing folders into the folder c:\incoming.So it would look like this c:\incoming\a whole lot of folders it does not search the subfolders.It would be great if I could have it look there!Thanks
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

merging files/folder with similar name

Post by Oleg »

No problem. Just turn on the "Include subfolders" checkbox in "File loop" action.

I thought that this setting is not needed.
Post Reply