On Wed, Sep 14, 2011 at 1:13 PM, Jonatas Emidio <jonatasemi...@gmail.com> wrote: > Here i come!! > > I have the following problem... > I need run by python script a string with some "DOS commands - Windows > prompt"!! > For exemple: > print 'cd temp' > print 'mkdir temp_app' > > How can i run this string in the python, but as a DOS interpreter?
Use the `subprocess` module, and pass shell=True. http://docs.python.org/library/subprocess.html Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list