Files
2026-06-12 10:59:32 +08:00

14 lines
224 B
Batchfile

@echo off
setlocal enabledelayedexpansion
set count=1
for /f "delims=" %%i in ('dir /b /a-d') do (
if not "%%i"=="%~nx0" (
ren "%%i" "!count!%%~xi"
set /a count+=1
)
)
echo 重命名完成!
pause