如何在命令提示符中无限循环 运行 一个命令?
How to run a command in an infinite loop in command prompt?
在 windows 命令提示符中,我 运行 这样的命令
program.exe all
并在 运行 时打印出内容,然后结束。我基本上该怎么做?
while (1) {
program.exe all
}
但在某种程度上我仍然可以看到它打印出这些东西,我可以通过 ctrl+c 来停止它。
谢谢
@echo off
:while
(
program.exe all
goto :while
)
等于 while(true).
在 windows 命令提示符中,我 运行 这样的命令
program.exe all
并在 运行 时打印出内容,然后结束。我基本上该怎么做?
while (1) {
program.exe all
}
但在某种程度上我仍然可以看到它打印出这些东西,我可以通过 ctrl+c 来停止它。
谢谢
@echo off
:while
(
program.exe all
goto :while
)
等于 while(true).