Answers for "how to send a command to cmd using python"

0

how to send a command to cmd using python

import os
# this command will be executed in cmd eg.echo hi
os.system("echo hi")
#output
#hi
Posted by: Guest on April-06-2021

Code answers related to "how to send a command to cmd using python"

Python Answers by Framework

Browse Popular Code Answers by Language