How to call CMD without opening a window

后端 未结 7 668
被撕碎了的回忆
被撕碎了的回忆 2021-01-03 20:18

I\'ve an C++ method (using Visual Studio, if it helps) that calls to cmd like this:

start \\B example.exe arg1 arg2 arg3

The problem is tha

相关标签:
7条回答
  • 2021-01-03 21:15

    From win cmd:

    start /b cmd /c "example.exe arg1 arg2 arg3"
    

    Runs another instance of CMD without a window to run your program, and doesn't block parent window so it won't freeze.

    The /q switch isn't needed (won't work anyway) and will give error:

    '/q' is not recognized as an internal or external command,
    operable program or batch file.
    
    0 讨论(0)
提交回复
热议问题