Execute a Command Prompt Command from Python
Two methods to execute a Command Prompt command from Python: (1) CMD /K – execute a command and then remain: Copy import os os.system(‘cmd /k “Your Command Prompt Command”‘) (2) CMD /C – execute a command and then terminate: Copy import os os.system(‘cmd /c “Your Command Prompt Command”‘) 2 Methods to Execute a Command Prompt … Read more