@echo offrem 启用"延缓环境变量扩充"setlocal EnableDelayedExpansionset a=300
for /f %%i in ('dir /b *.bytes') do (ren "%%i" "GhostDatas_!a!.bytes"set /a a+=1
)echo 批量重命名完成!pause
参考:
https://www.iteye.com/blog/knowyouknowme-543562