2007-01-25 18:28:44
lee <[EMAIL PROTECTED]> wrote in message
<[EMAIL PROTECTED]>

> 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)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to