@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
参考:
https://www.iteye.com/blog/knowyouknowme-543562
原文:https://www.cnblogs.com/sun-shadow/p/12779142.html