Answers for "python script for run a command in cli"

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 "python script for run a command in cli"

Python Answers by Framework

Browse Popular Code Answers by Language