How to Open CMD in the Background With Python
- 1). Open your Python program for editing in your code editor of choice.
- 2). Create a new line in the section of the program where you want to open a CMD window by pressing the "Enter" key.
- 3). Type (into the new line you just created) the following:
"py.ext_launch("c:\windows\system32\cmd.exe","arguments");" where "arguments" can either be blank or can be the arguments and applications you want to execute in the command prompt window.
Source...