Run a batch file in a new window from batch?

前端 未结 7 2063
故里飘歌
故里飘歌 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:39

    If you are going to run it in a different command prompt, type start C:\abc.bat or whatever the directory of abc.bat is, or if you want to open it in the same command prompt, type call "C:\abc.bat" again, wherever the directory is. It should work

    Either: call "C:\abc.bat" or start C:\abc.bat

提交回复
热议问题