Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从 Windows 控制台(cmd.exe)运行程序,然后关闭控制台。现在当我这样做时,只要程序正在运行,控制台就会保持打开状态。
我希望它启动程序,关闭控制台并使用程序。
我双击批处理
@c:\somedir\app.exe
利用start
start
START "title" [/Dpath] [options] "command" [parameters]
例子:start /B "Test" program.exe
start /B "Test" program.exe
http://ss64.com/nt/start.html
我现在没有运行 Windows,所以我无法尝试,但你调查过start吗?您可以在此处找到更多信息。
另一种选择可能是call.
call