Python: Start new command prompt on Windows and wait for it finish/exit

前端 未结 5 1273
夕颜
夕颜 2020-11-28 11:23

I don\'t understand why it\'s so hard to do this on Windows.

I want to spawn a bunch of command prompt windows which will run other scripts. The reason I want this i

5条回答
  •  攒了一身酷
    2020-11-28 11:52

    The accepted answer didn't work for me.
    To open on a new command prompt I had to use:

    os.system("start /B start cmd.exe @cmd /k mycommand...")
    

提交回复
热议问题