1

我想从 Windows 控制台(cmd.exe)运行程序,然后关闭控制台。现在当我这样做时,只要程序正在运行,控制台就会保持打开状态。

我希望它启动程序,关闭控制台并使用程序。

我双击批处理

@c:\somedir\app.exe
4

2 回答 2

6

利用start

START "title" [/Dpath] [options] "command" [parameters]

例子:start /B "Test" program.exe

http://ss64.com/nt/start.html

于 2011-11-16T10:00:25.510 回答
1

我现在没有运行 Windows,所以我无法尝试,但你调查过start吗?您可以在此处找到更多信息。

另一种选择可能是call.

于 2011-11-16T09:47:33.647 回答