Windows – 从命令行启动程序,而不打开新窗口

前端之家收集整理的这篇文章主要介绍了Windows – 从命令行启动程序,而不打开新窗口前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用此comand从CMD以编程方式执行外部文件
START "filepath"

filepath是我的文件的路径
它打开正常,但它也打开一个新的命令提示符窗口.

那么,这是打开外部程序而不打开新窗口的正确命令?

Add / B,如命令行帮助中所述:
C:\>start /?
Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
  [/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
  [/NODE <NUMA node>] [/AFFINITY <hex affinity mask>] [/WAIT] [/B]
  [command/program] [parameters]

"title"     Title to display in window title bar.
path        Starting directory.
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.

猜你在找的Windows相关文章