Sometimes some suffix names do not meet the conditions, you need to do batch replacement, if man-made to replace, then if the quantity is not good enough to say, a lot of words to replace it is too silly, today from the network to find some of the batch replacement of the DOS command, with a pretty good use, the code directly posted on this side.
For example, sometimes the name of the suffix is jpeg, but some sites for security, direct restrictions can only upload jpg suffix, this time you can use this batch replacement tool.
Copy Code code as follows:
@echo off
set/p filename= Please enter the suffix name to replace:
Echo.
set/p filename2= Please enter the replacement suffix name:
Echo.
Setlocal enabledelayedexpansion
for/f "tokens=*"%%i in (' dir/b *.%filename% ') do (
for/f "Tokens=1 delims=."%%j in ("%%i") do Ren "%%i" "%%j.%filename2%"
)
Echo Replacement succeeded! Press any key to launch
Pause