Run a batch file in a new window from batch?

前端 未结 7 2045
故里飘歌
故里飘歌 2020-12-24 06:54

I know it seems this has been asked before, but I need a batch to open another batch in a new window. I\'ve tried:

start abc.bat

cmd abc.bat

run abc.bat
         


        
7条回答
  •  [愿得一人]
    2020-12-24 07:46

    To simply do it is just

    start cmd /c "exampleexample.bat"
    

    This could also work with spaces;

    start cmd /c "example example.bat"
    

    And directories.

    start cmd /c "C:\NAME\Example\Hi there\example example.bat"
    

    I created my universal batch with this and this works flawlessly.

提交回复
热议问题