批处理如何终止for里面的循环体
当达到条件时怎么终止for呢?
------解决方案--------------------------------------------------------
- BatchFile code
@echo offrem setlocal EnableDelayedExpansionfor /l %%a in (1,1,9) do ( if %%a equ 5 ( goto :hello ) else ( echo %%a ))goto :eof:helloecho hello world