I am new to python world !

Requirement is to automate plashing process. I need to run few ommand from command line (cmd) on window.
- open cmd
- execute command1
- execute command2

could you help me to develop script to automate this process ?


If you would like to open any program including cmd or if you want to execute code in the cmd using python you must look into the os module.

import os
os.startfile(r"program location in computer") # the 'r' before the string changes how \ are used
os.system("command") # this will execute your command through the dos cmd