How to use the start command in a batch file?

前端 未结 2 1256
独厮守ぢ
独厮守ぢ 2020-12-09 09:06

I have a batch file that starts an app with a lot of command-line parameters:

\"C:\\Program Files (x86)\\Common Files\\Microsoft Shared\\DevServer\\11.0\\Web         


        
相关标签:
2条回答
  • 2020-12-09 09:31

    I think this other Stack Overflow answer would solve your problem: How do I run a bat file in the background from another bat file?

    Basically, you use the /B and /C options:

    START /B CMD /C CALL "foo.bat" [args [...]] >NUL 2>&1
    
    0 讨论(0)
  • 2020-12-09 09:40

    An extra pair of rabbits' ears should do the trick.

    start "" "C:\Program...
    

    START regards the first quoted parameter as the window-title, unless it's the only parameter - and any switches up until the executable name are regarded as START switches.

    0 讨论(0)
提交回复
热议问题