Discussion Locked

files rename

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
am trying to rename series of files as following
Hello.txt -to- hello123.txt
test.txt -to- test123.txt

any idea how to do add text after the file name and bfore the extentions. I tried this cod but it does not work well
for /f %%i in ('dir /b /a-d *.txt') do @ren %%i %%i.txt.

2 replies

by tony hopkinson

on the dir containing only files you want to rename and them all having the same extension

ren * *.
to get rid of the extension
ren * *123.txt
to suffix the 123 and put the extension back on.

by craftamics

It is free, but apparently not "open source", and has a host of useful features. Adding your "suffix", as the utility calls it, is a piece of cake for multiple files. It is only available for Windows and it can be run from a USB flash drive. There is even a command line version for batch files and shell scripts. (But there is not a DOS version.)

Home page:
http://www.bulkrenameutility.co.uk/Main_Intro.php

I use it to maintain the "file naming guidelines" on the shared drive. Of course it drives the users crazy if they don't follow the guidelines and then make link files in other places before I correct their "real" file's name.

This discussion is closed to new replies.