如何在批处理文件中连续循环命令

Jam*_*mes 3 loops batch-file

正如标题所述,您将在批处理文件中使用哪些参数来连续执行命令,例如

启动记事本循环

Joe*_*oey 6

单行中的另一个选项(也可以在命令行中使用):

for /l %x in (1,0,2) do (start /wait notepad)
Run Code Online (Sandbox Code Playgroud)

如果您在批处理文件中使用它,请使用

for /l %%x in (1,0,2) do (start /wait notepad)
Run Code Online (Sandbox Code Playgroud)

代替.