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


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

Re: why did the WindowsError occur?

Started byBenjamin Kaplan <benjamin.kaplan@case.edu>
First post2012-09-04 23:37 -0700
Last post2012-09-04 23:37 -0700
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? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-09-04 23:37 -0700

#28458 — Re: why did the WindowsError occur?

FromBenjamin Kaplan <benjamin.kaplan@case.edu>
Date2012-09-04 23:37 -0700
SubjectRe: why did the WindowsError occur?
Message-ID<mailman.215.1346827462.27098.python-list@python.org>
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.

[toc] | [standalone]


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


csiph-web