batch folder renaming "Removing tags"

Post any Bulk Rename Utility support requirements here. Open to all registered users.

batch folder renaming "Removing tags"

Postby DougE » Thu Jan 18, 2018 4:38 pm

I have hundreds of folders on one drive. Each folder has a tag in the name I want to compare against a list and replace.

example:
somefoldername -vfx nfo
adifferentfoldername -ooxm DMC
randomfoldername -mpsqvvkd fig
anyfoldername -mp0000d time

Tags used to indicate the creator of the folder. I want to build a list of tags that needs removed. Below is a example of some tags.
-vfx
-ooxm
-mpsqvvkd
-mp0000d

I want to batch remove those tags out of the folder names so they look like this:
somefoldername nfo
adifferentfoldername DMC
randomfoldername fig
anyfoldername time


I currently use the "replace" option. But I have to manually enter each tag ((Replace) "-vfx" (With) " ")
There are hundreds of different tags.

Any help is appreciated.
DougE
 
Posts: 2
Joined: Thu Jan 18, 2018 4:22 pm

Re: batch folder renaming "Removing tags"

Postby therube » Thu Jan 18, 2018 6:24 pm

1:RegEx
Code: Select all
Match:  (.*)(-vfx |-ooxm |-mpsqvvkd |-mp0000d )(.*)
Replace:  \1\3
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: batch folder renaming "Removing tags"

Postby DougE » Mon Jan 22, 2018 7:58 am

It seems to be adding a space in front of the folder name.
also are |[***] not allowed?

I have added dozens of pipe breaks "|" as I have dozens and dozens of tags. It does not seem to be executing them all.
DougE
 
Posts: 2
Joined: Thu Jan 18, 2018 4:22 pm


Return to BRU Support


cron