running applications in python
Daniel
not at set.se
Thu Jan 25 15:43:43 EST 2007
More information about the Python-list mailing list
Thu Jan 25 15:43:43 EST 2007
- Previous message (by thread): Python does not play well with others
- Next message (by thread): running applications in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Previous message (by thread): Python does not play well with others
- Next message (by thread): running applications in python
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list