Answers for "run command code in python"

30

execute command in python script

import os

os.system("ma Commande")

#Exemple:

os.system("cd Documents")
Posted by: Guest on June-10-2020
0

how to run a command in command prompt using python

import os
os.system('cmd /k "Your Command Prompt Command"')
Posted by: Guest on April-14-2022

Code answers related to "run command code in python"

Python Answers by Framework

Browse Popular Code Answers by Language