*shrugs* To be honest I don't really use batch renaming, but after actually reading the help file's description of the switch "The /e switch simply means: drop the original extension," leaves me thinking you should just leave it as is. I think the majority of people are going to want the current behavior even if it is a little confusing. The case presented here is out of the ordinary I'd say, and as such it's acceptable if it cannot be done using only batch rename.admin wrote:I'm not that sure anymore. It's a bit confusing:TheQwerty wrote:I'd agree with that.admin wrote:I expected this one to work:but it just replaces the extension. I'd say this is a bug. If the /e switch is present, then * should refer to the whole name (base+extension), right?Code: Select all
rename , "*.<date yymmdd> /e";Now what's better?Code: Select all
Old Pattern New This is how it works now: a.jpg *-<#3> a-3.jpg a.jpg *-<#3>.png a-3.png.jpg a.jpg *-<#3> /e a-3 a.jpg *-<#3>.png /e a-3.png With the new way, the latter two would change as follows: a.jpg *-<#3> /e a.jpg-3 a.jpg *-<#3>.png /e a.jpg-3.png
As an aside, I think you should add mention of the /s and /i switches to the Batch Rename dialog.
XYplorer Beta Club