Page 1 of 1

Append Folder Name but only first Letters

PostPosted: Mon Oct 06, 2014 7:30 am
by zert
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

Re: Append Folder Name but only first Letters

PostPosted: Wed Oct 08, 2014 6:04 am
by Stefan
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.