You do not tell us how you create new folder names.
Yet, if you use an action of the type "Format tag-field" for _DIRECTORY and e.g. the
format string: %artist%
(which should be the one in the desired format)
then you only rename the folder instead of rename the file (and the folder part to address that file).
as an alternative to the action, you can also use the Convert>Tag-Tag function.
Now a word on messing about with names: In general I am not a friend of swapping first and last name as this always causes havoc with names that have to stay that way: Pink Floyd, Rolling Stones, "Dave Dee, Dozy, Beaky, Mick & Tich", "Katrina & the Waves" and so on.
So, unless you want to keep a special advisory which name gets swapped and which one doesn't, I think it is easiest not to swap anything at all. My opinion.
Action: Format Value
Field: Artist
String: $regexp(%artist%,(.) (.),$2',' $1)
BUT:
Works only for artists with one sure name.
If you want Jon Bon Jovi to Bon Jovi, Jon (and not Jovi, Jon Bon) you have to use:
$regexp(%artist%,(.?) (.),$2',' $1)
I only want to reverse / change folders with artist name or The 'band' eg Lou reed [Reed, Lou] or The Cult [Cult (The) ]
Artist like Pink Floyd or Papa roach would not be changed.
[quote name='Victor Kostas' post='80986']
I suggest you invest on sorted-tags (artistsort, albumartistsort). It is not possible to find a clever script knows an artist is a band or a person.
[/quote
I manually remove any files from list, I do not want to change, before using program.