19w85
Попробуй
Код: Echo off
for /f "usebackq delims=" %%i in (`dir /b /a-d "*.png"`) do call :RenFile "%%~i"
Goto :eof
:RenFile
set "name=%~n1"
if not "%name:~-11,1%"==" " (
set "name1=%name:~0,-18%20%name:~-12,2%.%name:~-15,2%.%name:~-18,2% %name:~-10%"
ren "%~dpnx1" "%name1%%~x1"
)
Goto :eof
Попробуй
Код: Echo off
for /f "usebackq delims=" %%i in (`dir /b /a-d "*.png"`) do call :RenFile "%%~i"
Goto :eof
:RenFile
set "name=%~n1"
if not "%name:~-11,1%"==" " (
set "name1=%name:~0,-18%20%name:~-12,2%.%name:~-15,2%.%name:~-18,2% %name:~-10%"
ren "%~dpnx1" "%name1%%~x1"
)
Goto :eof