SC rename [mode r][flag 8]: auto-suffix if pattern match fails
Posted: 25 Nov 2016 09:55
XY: v17.30.0109
e.g.
There exists only one item named "b" in current folder. Select "b", and set the incremental affix in Configuration to "(2)".
Then executing this script:
will rename "b" to "b(2)".
If the RegExp pattern match fails, the name(s) of the item(s) to be renamed should just keep unchanged.
e.g.
There exists only one item named "b" in current folder. Select "b", and set the incremental affix in Configuration to "(2)".
Then executing this script:
Code: Select all
rename r, "a > c", , , 8;If the RegExp pattern match fails, the name(s) of the item(s) to be renamed should just keep unchanged.