Page 1 of 1
<folder> in batch rename
Posted: 30 Jun 2016 10:44
by LittleBiG
Code: Select all
v16.70.0003 - 2016-05-05 20:19
+ Batch Rename: Added support for variable <folder>, resolved to each item's
parent folder name. For example, this pattern will prefix the item's parent
folder name to each renamed item:
<folder>-*
This doesn't work. I tried the
and got the very same folder names for all items, not the parent.
Re: <folder> in batch rename
Posted: 30 Jun 2016 14:06
by TheQwerty
Referencing <folder> like this causes it to be resolved before the call to rename.
This description from the help applies to this scenario as well:
rename() documentation wrote:Note the single quotes around the date variable: This ensures that it is only resolved inside the rename procedure on a per-file basis. If it were double-quoted then all selected files would be appended the modified date of the currently focused item.
This should work as you expect:
Re: <folder> in batch rename
Posted: 30 Jun 2016 15:17
by LittleBiG
Thanks, indeed! (how sloppy reader I was...)