Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How can I rename file extension for files within many subdirectories.
Using the following basic command I can rename file extensions for all files in the same directory:
ren *.mp3 *.adp
But how do I change all files within subdirectories of C:\WINDOWS\Music\Misc?
I greatly appreciate all of your time and efforts, thank you.

Unfortunately this did not do anything to the files within all the subdirectories of \Misc.
Yes, I saved the .BAT file as "all files".
I appreciate your help though, thank you.

Sorry there was a little mistake in the code I posted, replace with
@echo off for /R C:\Windows\Music\Misc %%j in (.) do ( if exist "%%j\*.mp3" ren "%%j\*.mp3" "*.adp" )

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |