os.system(cmd) isn't working

Tjarko de Jong tjarko at dutlbcz.lr.tudelft.nl
Thu Jun 23 10:28:42 EDT 2005


On Thu, 23 Jun 2005 00:02:55 -0400, Gregory Piñero
<gregpinero at gmail.com> wrote:

>Hi guys,
>
>I'm trying to run this statement:
>
>os.system(r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
>"www.blendedtechnologies.com"')
>
>The goal is to have firefox open to that website.
>
>When I type r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
>"www.blendedtechnologies.com"' in the python interpreter I get:
>
>'"C:\\Program Files\\Mozilla Firefox\\firefox.exe"
>"www.blendedtechnologies.com"'
>
>And when I copy this into my command prompt (less outermost ' )
>firefox opens up to that page like I would expect.  However in python
>nothing happens and I get exit status 1.
>
>I'm using Python 2.3 on Windows XP pro service pack 2.

What is wrong with:
os.startfile("www.blendedtechnologies.com")



More information about the Python-list mailing list