Hi,
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 ?

Br,
sbk

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.