Skip to content
Advertisement

How to open a CMD window using python code

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

Advertisement

Answer

 import os
 os.system("start cmd.exe")
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement