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


Groups > comp.lang.python > #28529 > unrolled thread

Re: why did the WindowsError occur?

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2012-09-05 13:18 -0400
Last post2012-09-05 13:18 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#28529 — Re: why did the WindowsError occur?

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2012-09-05 13:18 -0400
SubjectRe: why did the WindowsError occur?
Message-ID<mailman.259.1346865609.27098.python-list@python.org>
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/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web