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

前端 未结 5 1275
夕颜
夕颜 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:56

    How about

    os.system("cmd /c {command here}") 
    

    Or even

    os.system("{command here}")
    

    It is the start command the one that is launching a separate session instead of using the same one the python program is running on.

提交回复
热议问题