Append Folder Name but only first Letters

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

Append Folder Name but only first Letters

Postby zert » Mon Oct 06, 2014 7:30 am

Thanks for a great program

By "Append Folder Name (9)" its easy to add foldername, that is
C:/Apple Beer/Vacation01.jpg => C:/Apple Beer/Apple Beer - Vacation01.jpg

but is it possible only to add the first letters in the folder name:

This is what i need:
C:/Apple Beer/Vacation01.jpg => C:/Apple Beer/AB - Vacation01.jpg

Thanks
zert
 
Posts: 1
Joined: Mon Oct 06, 2014 7:22 am

Re: Append Folder Name but only first Letters

Postby Stefan » Wed Oct 08, 2014 6:04 am

zert wrote:Thanks for a great program

By "Append Folder Name (9)" its easy to add foldername, that is
C:/Apple Beer/Vacation01.jpg => C:/Apple Beer/Apple Beer - Vacation01.jpg

but is it possible only to add the first letters in the folder name:

This is what i need:
C:/Apple Beer/Vacation01.jpg => C:/Apple Beer/AB - Vacation01.jpg

Thanks



FROM:
C:/Apple Beer/Vacation01.jpg
TO:
C:/Apple Beer/AB - Vacation01.jpg

Is not possible.

But you can do that in several steps.
1.) C:/Apple Beer/Vacation01.jpg => C:/Apple Beer/Apple Beer - Vacation01.jpg
2.) Select files according to the amount of words in folder name
3.) Do a second renaming with RegEx, where you match the word(s) of the folder name and replace with first letter only.
C:/Apple Beer/Apple Beer - Vacation01.jpg => C:/Apple Beer/AB - Vacation01.jpg
For two word folder names it would be
RegEx(1)
Find: (.)(.+ )(.)(.+)( - .+)
Replace: \1\3\5

(Regex is based on your provided example names)









Please wait a few seconds then submit. Thank you.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to BRU Support