gpt4 book ai didi

batch-file - 使用批处理脚本在多个命令提示符下运行无限循环

转载 作者:行者123 更新时间:2023-12-01 08:32:10 25 4
gpt4 key购买 nike

我正在尝试编写一个批处理脚本以在 10 个不同的命令提示符下运行无限循环,但这似乎不起作用。它打开命令提示符并消失,我在下面发布了脚本,请让我知道确切的位置是问题所在。

 for /l %%x in (1, 1, 10) do (

start cmd /c ":up echo loop && goto up"

)

最佳答案

for /l %%a in (0) do start "%~f0"

关于batch-file - 使用批处理脚本在多个命令提示符下运行无限循环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17716999/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com