我正在尝试使用此comand从CMD以编程方式执行外部文件:
START "filepath"
filepath是我的文件的路径
它打开正常,但它也打开一个新的命令提示符窗口.
那么,这是打开外部程序而不打开新窗口的正确命令?
Add / B,如命令行帮助中所述:
原文链接:https://www.f2er.com/windows/371480.htmlC:\>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.