@echo off
rem 启用"延缓环境变量扩充"
setlocal EnableDelayedExpansion
set a=300
for /f %%i in ('dir /b *.bytes') do (
ren "%%i" "GhostDatas_!a!.bytes"
set /a a+=1
)
echo 批量重命名完成!
pause
参考:
@echo off
rem 启用"延缓环境变量扩充"
setlocal EnableDelayedExpansion
set a=300
for /f %%i in ('dir /b *.bytes') do (
ren "%%i" "GhostDatas_!a!.bytes"
set /a a+=1
)
echo 批量重命名完成!
pause
参考: