Windows批处理脚本中实现循环计数的方法

Windows批处理脚本中循环计数可以参考以下代码实现:

setlocal EnableDelayedExpansion 
set ii=1 6 M% l( R( a% _/ S* `: yfor /R %%i in (*.txt) do ( 6 S3 O  y% }, Y4 x  set  /a  sum+=!ii! 
    @echo  %TIME% 已完成!sum! 个补丁,继续安装中... 
)
pause

发表评论

邮箱地址不会被公开。 必填项已用*标注