How to rename selected files including sub-directories

  • Thread starter Thread starter Tom Lavedas
  • Start date Start date
T

Tom Lavedas

If you want 'abc.011.doc' I believe you will need to alter
the renaming to include the original extention (%~nI only
returns the file's name before the dot). That is, try ...

For /R %folder% %%I in (*.1?? *.2??) do (
echo rename %%~fI %%~nxI.doc)

Tom Lavedas
===========
 
Have you tried:
HH ms-its:c:\winnt\Help\ntcmds.chm::/for__additional.htm
Yes, or at least the XP equivalent :)

It didn't cover the %folder% variable which is why I thought there
may be somewhere else to look.
 
Back
Top