flashercs 当前离线
少校
for %%a in (*) do ( for /f "tokens=1-5* delims=_ " %%A in ("%%a") do ( ren "%%a" "%%F%%E_%%A%%B%%C%%D" ) )复制代码
TOP
for %%a in (*) do ( for /f "tokens=1-5* delims=_ " %%A in ("%%~na") do ( ren "%%a" "%%F%%E_%%A%%B%%C%%D%%~xa" ) )复制代码
@echo off cd /d "%~dp0" for /f "delims=" %%a in ('dir /a /b *.txt') do ( for /f "tokens=1-5* delims=_ " %%A in ("%%~na") do ( echo ren "%%a" "%%F%%E_%%A%%B%%C%%D%%~xa" ren "%%a" "%%F%%E_%%A%%B%%C%%D%%~xa" ) ) pause exit /b复制代码