98480525 当前离线
列兵
Blitz 当前离线
一级士官
@echo off&setlocal enabledelayedexpansion set n=1 set m=0 for /f "delims=" %%a in ('dir /b *.txt') do ( set /a m=!m!+1 ren "%%a" "!n!.!m!.txt" if "!m!" == "2" set /a n=!n!+1&&set m=0 ) pause复制代码
TOP