Move files to a folder based on filename

Bulk Rename Utility How-To's

Move files to a folder based on filename

Postby jackson000 » Wed Dec 16, 2020 6:38 pm

I've got a large folder with files like so:

Project-1A
Project-1B
Project-1C
Project-2A
Project-2B
Project-3A
Project-3B

And so on. I'd like to sort them into project folders like so:

Project-1
--Project-1A
--Project-1B
--Project-1C
Project-2
--Project-2A
--Project-2B
Project-3
--Project-3A
--Project-3B

Is this possible?
jackson000
 
Posts: 5
Joined: Sun Oct 18, 2020 4:04 am

Re: Move files to a folder based on filename

Postby Luuk » Thu Dec 17, 2020 1:43 am

Greeting Jackson. This possible, but can be dangerous so requires the advanced menu settings. First you click to the "Renaming Options", then "Advanced Options", then to create checkmark for "Allow using '\' in Renaming Criteria for Creation of New Folders".Then the renames can be anything with \ to move the files, but Im thinking RegEx(1) to be chosen ...

Match.... (Project-\d+)(.+)
Replace... \1\\1\2
Luuk
 
Posts: 705
Joined: Fri Feb 21, 2020 10:58 pm

Re: Move files to a folder based on filename

Postby Admin » Fri Dec 18, 2020 3:50 am

8) Luuk
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To