I would like to make .bat
file which will be changing all files on all discs with extension .xxx
to extension .yyy
. It's just an example because I will want to add more file extensions like: change all .aaa
, .bbb
, .ccc
, etc. files to extension .ggg
.
Asked
Active
Viewed 624 times
0

Antti29
- 2,953
- 12
- 34
- 36
-
1Well thank you too, but no one will give you the code so easily. Why ? https://stackoverflow.com/help/dont-ask – Antoine Pelletier Oct 03 '17 at 17:54
-
Take a look: https://stackoverflow.com/questions/25583161/rename-multiple-files-in-a-directory-using-batch-script – Kalamarico Oct 03 '17 at 20:21
1 Answers
1
You can download this script from Microsoft's Script Center. It can change file extensions in bulk:
This batch script can be used to change file extensions in bulk. File extensions are renamed for all matching files in the current folder and in all subdirectories.It supports the following.1. Change extension for all the files in the current folder and all sub folders.
You can also use cmd
or file renaming utilities.
You can do it using rename
command, the general form is:
RENAME [drive:][path]filename1 filename2
Or
REN [drive:][path]filename1 filename2
For example;
REN *.xxx *.yyy
And also there are some file renaming utilities that you can use for the same:
For more detail please refer to this link.

skm
- 1,192
- 1
- 11
- 23
-
Could you please just write for me command to do it for the whole disc C? I mean this one: RENAME [drive:][path]filename1 filename2 – hokus pokus Oct 04 '17 at 14:17