Rename files in multiple directory

  • Thread starter Thread starter ChrisM
  • Start date Start date
C

ChrisM

I have thousands of files with extension .bin in hundreds of directories.
I would like to rename all the files to .tif extension at once. Can someone
show me how to write a batch file to do it, or any software utilities can
help me achieve it?

Thanks!

Chris
 
- Start a Command Prompt
- Navigate to the parent folder where the files reside
- Type this command:
for /r %a in (*.bin) do echo %a >> c:\rename.txt
- Type this command:
notepad c:\rename.txt
- Convince yourself that the file contains the appropriate file names.
If it contains the wrong file names then your final command will
really mess up things!
- When you're happy, go for the kill:
for /r %a in (*.bin) do ren "%a" *.tif
 
Back
Top