Create folders based on filenames and move files into them

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

Moderator: Mr_Noodle

Hi

Could someone please help me create rules for the following workflow:

I have one big folder with numerous files as follows:

image-1.cr2
image-1.jpg
image-1.png
image-1.txt
image-2.cr2
image-2.jpg
image-2.png
image-2.txt

so for each file name I have one main file (e.g. .CR2) and a variety of other extensions (not always the same ones).

I would like to create a folder based on the main file name and then move whatever other files have this name into that folder (regardless of the extension)

So it would look like:

image1
image-1.cr2
image-1.jpg
image-1.png
image-1.txt
image2
image-2.cr2
image-2.jpg
image-2.png
image-2.txt

Can anyone help me with that?

Many thanks in advance
SrDingo
 
Posts: 7
Joined: Mon Apr 15, 2013 5:50 am

Take a look at match patterns in the help.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support