So this works:
File1-suffix.txtren "*-suffix.txt" "*-newsuffix.txt"File1-newsuffix.txt
But this fails:
File1-suffixA-suffixB.txtren "*-suffixA-suffixB.txt" "*-newsuffixA-suffixB.txt"File1-suffixA-newsuffixA-suffixB.txt
Why is the original suffixA retained?
I have studied the documenation here & here
However I see nothing regarding dashes causing problems.
forloop with Cmd's built-in string substitution, then?%var:old=new%seems like it should be enough for your specific example. – u1686_grawity Jan 10 '24 at 14:12