Running three commands in the same process with Python
问题 I need to run those three commands for profiling/code coverage reporting on Win32. vsperfcmd /start:coverage /output:run.coverage helloclass vsperfcmd /shutdown I can't run one command by one because the helloclass executable should be profiled in the same process of vsperfcmd. What I think of is to make a batch file to run those three commands, and run the batch file in Python. However, I think python should have a way to do the equivalent action of launching a shell and run commands. Q :