I want python to open an empty Command Prompt (cmd.exe) and leave it open without running anything. I want command prompt to open in a new window and this python code to continue running.
I have tried:
os.system("start C://Windows/System32/cmd.exe") And:
os.system("C://Windows/System32/cmd.exe") And:
os.system("start /wait C://Windows/System32/cmd.exe") And:
os.system("start /wait cmd /c") None of the above left Command Prompt open. I also want to be able to close it later (with python) by using:
os.system("taskkill /f /im cmd.exe") Thanks for any help. I couldn't find an answer to this anywhere. This was the closest but this needed a command to be entered. I don't want a command to be entered before.
os.system('cmd /C start cmd'),os.system('cmd /C start'),os.system('start cmd'),os.system('start')