running applications in python
Daniel
not at set.se
Thu Jan 25 15:43:43 EST 2007
2007-01-25 18:28:44
lee <libintr at gmail.com> wrote in message
<1169746124.376610.139420 at 13g2000cwe.googlegroups.com>
> how can i run or open a windows application from the python
prompt?for
> e.g.mediaplayer opening,folder acess etc
Here's another way of doing it:
import os
TheCommandIwantTorun = '"C:\Program\Windows Media Player\wmplayer.
exe"' #saves the command to a string
os.system(TheCommandIwantTorun) #runs TheCommandIwantTorun in the
command prompt (windows)
More information about the Python-list
mailing list