14 lines
224 B
Batchfile
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 |