Zhangjianxiong 当前离线
列兵
flashercs 当前在线
少校
@echo off setlocal EnableDelayedExpansion cd /d "%~dp0" set ctr=0 for /d %%A in (*) do ( set "dirname=%%A" set /a "ctr+=1" echo ren "%%A" "!ctr!-!dirname:~2!" ren "%%A" "!ctr!-!dirname:~2!" ) endlocal pause exit /b复制代码
TOP
smss 当前离线
中尉
@echo off&setlocal enabledelayedexpansion&set n=0 for /f "delims=" %%i in ('dir /b/ad') do set /a n+=1&set "m=%%~ni"&ren "%%i" "!n!-!m:~2!" pause复制代码
1152 当前离线
禁止访问