python call external program

Dennis Lee Bieber wlfraed at ix.netcom.com
Tue Sep 14 22:48:50 EDT 1999


On Tue, 14 Sep 1999 15:20:05 GMT, Ben Thomas
<bthomas at trey-industries.com> declaimed the following in
comp.lang.python:

> OK, I can use: "os.system('dir c:\*.* >myfile.txt')"
> 
> But how can I call 'mybatch.BAT' from python? A DOS batch file that is.
> 
> closer... ever closer...

	Well, how would you call it from MS-DOS prompt?

	And how would you do your DIR example from an MS-DOS prompt?

	What is similar when plugged into os.system()...

--
 > ============================================================== <
 >   wlfraed at ix.netcom.com  | Wulfraed  Dennis Lee Bieber  KD6MOG <
 >      wulfraed at dm.net     |       Bestiaria Support Staff       <
 > ============================================================== <
 >        Bestiaria Home Page: http://www.beastie.dm.net/         <
 >            Home Page: http://www.dm.net/~wulfraed/             <




More information about the Python-list mailing list