gpt4 book ai didi

windows - 从一个批处理文件同时静默运行多个 .exe 文件

转载 作者:可可西里 更新时间:2023-11-01 11:23:03 26 4
gpt4 key购买 nike

我在 Windows 10 上,我需要静默地从一个批处理文件运行多个可执行文件,而不是等待它们完成。目前我有:

@echo off
start "" "%~dp0executable.exe" /q
start "" "%~dp0executable2.exe" /q

但这仍然会打开多个控制台窗口。
欢迎任何能达到相同结果的解决方法。

最佳答案

您的可执行文件似乎是控制台应用程序,否则不会出现控制台窗口。

无论如何,start command具有选项 /B;以下是 start/? 输出的摘录:

    B           Start application without creating a new window. The
application has ^C handling ignored. Unless the application
enables ^C processing, ^Break is the only way to interrupt
the application.

^C^Break,按 Ctrl + CCtrl + Pause/Break 是分别的意思。

关于windows - 从一个批处理文件同时静默运行多个 .exe 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57550506/

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