Pter Kve wrote:
| ---Quote (Originally by vefatica)---
|| Suggestion/request: How about the next version's REN having an /X,
|| say, option
|| to use regular expressions with captures [ \(...\) ] to identify
|| that target
|| files and expressions involving references to the captures [ \1, \2,
|| ... ] to
|| specify the new name? That would allow the user to pick the old
|| name apart and
|| put the pieces back together as desired.
|| Perhaps the OP could kludge something together using an alias and
|| 4UTILS's @XREPLACE ... (untested)
|| alias xren `for %f in ( "::%1" ) ren %f %@xreplace[%1,%2,%f]`
|| - Vince
|| ---End Quote---
| I agree that this feature has been missing from TCC. My solution is
| the attached perl script. I've been using it for several years,
| though the current incarnation requires perl 5.10.
No attachment was delivered to my mailbox. I don't know whether or not it is
visible via browser.
| The OP could then use
| C:\...\test>*dir /hkm*
Is that command a typo, which should be "*dir /hkm *"?
Your solution may be perfect for you, and probably includes protection about
multiple renaming, but I prefer doing it without invoking an external, when
it can be done without such.