tco99 当前离线
列兵
TOP
qixiaobin0715 当前离线
大校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%i in ('dir /b /a-d *_*.jpg') do ( set "str1=%%i" set "str2=!str1:_=\" for /f "delims=" %%j in ("!str2!") do ren "%%i" "!str1:%%~nj=x!" ) pause复制代码