[Tutor] Executing dos .bat file with Python script (original) (raw)

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Jul 24 21:25:20 CEST 2004


Let say I have a python script that write a .bat file, with the commands and arguments. Now how can I use that same python script to actually execute the .bat file in the Windows environment? Any direction would be appreciated.

Use os.system()

or os.popen() if you want to read the output...

Alan G.



More information about the Tutor mailing list