Answers for "code to open python file in cmd"

1

python code to open windows command prompt

import os
def mycmd():
    os.system('cmd /c "ipconfig"')
mycmd()
Posted by: Guest on September-04-2020
0

how to open cmd and run code using python

os.system("start /wait cmd /c {command}")
Posted by: Guest on December-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language