Question : DOS batch rename with extension

Hi.  In DOS, i need to add a suffix to every file in a folder.  They are all similar to "01234.jpg" and they need to be renamed to "01234-NEW.jpg"

Any suggestions?
thanks!

Answer : DOS batch rename with extension

Well, just in the interest of sharing different ideas, it can be done on one line as follows, from the command line:

for %A in (*.jpg) do @ren %A %~nA-NEW.jpg

~bp
Random Solutions  
 
programming4us programming4us