JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

bat批处理,无限循环,类似while

发布时间 2023-10-15 19:59:32作者: 悟透

bat 批处理,没有 while 这样的循环,那就要自己创建了。


一、用 :loop

:loop
echo %num%
set /a num+=1
if %num% lss 10 goto :loop

二、用 for

FOR /L %N IN () DO @echo Oops

三、



四、




免责声明:本号所涉及内容仅供安全研究与教学使用,如出现其他风险,后果自负。




参考、来源:
https://blog.csdn.net/Victor2code/article/details/103550260
https://www.codenong.com/5487473/



    本栏目推荐文章
  • 7 - for循环while循环 1+2+...+100和
  • 5- while循环
  • java项目(jar包)配置为开机自启 jar包bat脚本启动和配置为开机自启
  • while循环
  • An unexpected error has occurred while opening the workflow. See the event log on the AOS and contact your system administrator to resolve the issue.
  • 解决Nginx报error while loading shared libraries: libjemalloc.so.2: cannot open
  • while循环打印100次'认真听课'
  • bat利用rundll32执行程序的函数执行程序
  • 记录一下bat启动程序导致执行异常的问题。
  • linux 中while 循环read读入数据 使用IFS指定分割符
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们