Page 1 of 1

batch folder renaming "Removing tags"

PostPosted: Thu Jan 18, 2018 4:38 pm
by DougE
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.

Re: batch folder renaming "Removing tags"

PostPosted: Thu Jan 18, 2018 6:24 pm
by therube
1:RegEx
Code: Select all
Match:  (.*)(-vfx |-ooxm |-mpsqvvkd |-mp0000d )(.*)
Replace:  \1\3

Re: batch folder renaming "Removing tags"

PostPosted: Mon Jan 22, 2018 7:58 am
by DougE
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.