Calling a dos batch file from python

kyosohma at gmail.com kyosohma at gmail.com
Tue Sep 4 11:01:54 EDT 2007


On Sep 4, 8:42 am, n o s p a m p l e a s e <nospam.ple... at alum.com>
wrote:
> Suppose I have a batch file called mybatch.bat  and I want to run it
> from a python script. How can I call this batch file in python script?
>
> Thanx/NSP

The subprocess module should work.

Mike




More information about the Python-list mailing list