在Linux上,很容易实现无限循环的脚本:
while true; do echo "I will continue loop..." sleep 1 done
在Windows中,可以通过goto
goto
@echo off :begin echo "I will continue loop..." sleep 1 goto begin
How To Create Batch File With Endless For Loop On Windows 7?
Last updated 4 years ago