Tuesday, February 17, 2009

Run DOS command from python

A lot of works can work in a good way with the basic DOS commands now you can all these DOS commands in python with the help of OS module.

example:

import os

os.system("DOS commands goes here" "arguments if any")
like

os.system("RD %s" %"F:\\KJI\\")

No comments: