1、变量设置
for /l %%i in (1,1,100) do @echo %%i
set /a i=500
set /a i=%i%+200
echo %i%
pause
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
for /l %%i in (1 1 10) do (
set /a var=%%i+2
echo !var!
echo %var%
)
++++++++++++++++++++++++++++++++++++++++++++++
@echo off
setlocal enabledelayedexpansion
set num=12
for /l %%i in (1,1,5) do (
set /a num+=10
echo !num!
)
pause
https://zhidao.baidu.com/question/363162512.html
https://www.cnblogs.com/siwuxie095/p/6358173.html
2、set 命令详解 https://www.jb51.net/article/18973_all.htm
3、批处理教程大全 http://www.bathome.net/thread-75-1-1.html
4、for循环详解 https://www.cnblogs.com/yang-hao/p/6003923.html
https://www.cnblogs.com/DswCnblog/p/5435300.html
https://www.cnblogs.com/adforce/p/3282591.html 已阅读
5、cmd统计文件行数 https://blog.csdn.net/weixin_41972401/article/details/80690365
6、批处理获取计算机信息 https://blog.csdn.net/wangxiaofei2006/article/details/40503877
7、批处理中的变量和参数 https://www.cnblogs.com/siwuxie095/p/6351210.html