superhu 当前离线
列兵
idwma 当前离线
少校
TOP
qixiaobin0715 当前离线
大校
@echo off set testfolder=D:\test setlocal enabledelayedexpansion cd /d %testfolder% for /f "delims=" %%a in ('dir /b /s /a-d') do ( set /a n+=1 ren "%%a" "批处理!n!%%~xa" ) pause复制代码