a5050554 当前离线
列兵
ren 1.jpg 多核.jpg ren 2.jpg 单号.jpg 复制代码
qixiaobin0715 当前离线
大校
@echo off for /r /d %%i in (*) do ( ren "%%i\1.jpg" "多核.jpg" ren "%%i\2.jpg" "单号.jpg" ) 2>nul pause复制代码
TOP
qixiaobin0715 发表于 2021-6-17 07:09
@echo off setlocal enabledelayedexpansion for /f "tokens=1*" %%i in (1.txt) do set "-%%i=%%j" for /r %%a in (*.png) do ren "%%a" "!-%%~nxa!" pause复制代码