-3

I want to open a cmd window using Python. I think I can use os library but I don't know how.

2

2 Answers 2

2
 import os os.system("start cmd.exe") 
Sign up to request clarification or add additional context in comments.

Comments

2

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

import os os.system("start /wait cmd /c cmd") 

Should do the trick!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.