how do I rename *.3gp.mp4 to *.mp4?
so e.g. aaa.3gp.mp4 should be aaa.mp4
E:\blah>rename *.3gp.mp4 *.mp4
E:\blah>move *.3gp.mp4 *.mp4
The filename, directory name, or volume label syntax is incorrect.
E:\blah>
none of those commands are renaming the files.
how do I rename *.3gp.mp4 to *.mp4?
Moderator: DosItHelp
Re: how do I rename *.3gp.mp4 to *.mp4?
Use FOR loops and the format specifiers of FOR variables.
Remove the ECHO if it outputs the right commands.
Steffen
Code: Select all
for %%i in (*.3gp.mp4) do for %%j in ("%%~ni") do ECHO ren "%%~i" "%%~nj%%~xi"
Steffen