Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28529

Re: why did the WindowsError occur?

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: why did the WindowsError occur?
Date 2012-09-05 13:18 -0400
Organization > Bestiaria Support Staff <
References <CAEMsKDuQ2GJh9o0C=uCJkVAW6k2PDeGXU5ou8TbFgG4E-OVviQ@mail.gmail.com> <CAMuTYXiRptYOC44bCKAsP7iLZG4-_e8aVb3QcZrTmioPiU80Og@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.259.1346865609.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, 4 Sep 2012 23:37:57 -0700, Benjamin Kaplan
<benjamin.kaplan@case.edu> declaimed the following in
gmane.comp.python.general:

> On Tue, Sep 4, 2012 at 11:30 PM, Levi Nie <levinie001@gmail.com> wrote:
> > my code:
> > import os
> > os.startfile(r'C:\Program Files\Internet Explorer.exe')
> >
> > the error:
> > os.startfile(r'C:\Program Files\Internet Explorer.exe')
> > WindowsError: [Error 2] : 'C:\\Program Files\\Internet Explorer.exe'
> >
> 
> There's no such thing as C:\Program Files\Internet Explorer.exe. You
> probably want C:\Program Files\Internet Explorer\iexplore.exe.

	Unless I have a weird computer, 

>>> import os
>>> os.startfile("iexplore")
>>> 

is sufficient to start internet explorer (why one would want to start IE
is a matter I won't touch).
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: why did the WindowsError occur? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-05 13:18 -0400

csiph-web