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


Groups > comp.lang.python > #28458

Re: why did the WindowsError occur?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bsk16@case.edu>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.039
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'error:': 0.05; 'received :mail-lpp01m010-f46.google.com': 0.09; 'sep': 0.09; 'wrote:': 0.17; 'import': 0.21; 'header:In-Reply-To:1': 0.25; 'message- id:@mail.gmail.com': 0.27; 'probably': 0.29; 'received:209.85.215.46': 0.30; 'to:addr:python-list': 0.33; 'code:': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'skip:o 20': 0.38; 'to:addr:python.org': 0.39; '[error': 0.84
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=cx3PUI1uJlPX+1SmIzd4N6F0SY1zboBCghV1oD+y5ak=; b=ElCH/1BzTHVRTsCuVGN0+/C+1FQT6S6JfBn9k9nUKrIfgl0yzEZhTQR+A5M3nhFhtb fcqV2VuGfdCkurjO57WETBpgIxwEJjI0KslrgACYz2QEv5Q5uZ/hiGdp/OOP0xR5tt+r xkFWQjNYQ4cLqlvuE3lmL/XycQMqqLouZ8mMMVfVIfrEr+2SGmZXRssT5n+0+setV4Sx ANqUX3OS9b/ZY7Ktp9bkWYz88k/XfPKJeW+GTGYj2IMJjjpQ3P8ddeMvOdxVcaO8PvE+ ew3QBMpbDc/PGynhuKouz9/FIXDyq2rNcbQ+u0/9YP19KWjy3YNB/a7UiBLYsB8DVQRY BUDA==
MIME-Version 1.0
In-Reply-To <CAEMsKDuQ2GJh9o0C=uCJkVAW6k2PDeGXU5ou8TbFgG4E-OVviQ@mail.gmail.com>
References <CAEMsKDuQ2GJh9o0C=uCJkVAW6k2PDeGXU5ou8TbFgG4E-OVviQ@mail.gmail.com>
Date Tue, 4 Sep 2012 23:37:57 -0700
Subject Re: why did the WindowsError occur?
From Benjamin Kaplan <benjamin.kaplan@case.edu>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
X-Gm-Message-State ALoCoQmHXveZWLLlWLde94R0csmSD2b9orsF2TI/pVse0tDAjHD3rfqWx//AyjoI18kAMzBwa/4J
X-Junkmail-Whitelist YES (by domain whitelist at mpv1.tis.cwru.edu)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.215.1346827462.27098.python-list@python.org> (permalink)
Lines 12
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346827462 news.xs4all.nl 6955 [2001:888:2000:d::a6]:46676
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28458

Show key headers only | View raw


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.

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


Thread

Re: why did the WindowsError occur? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2012-09-04 23:37 -0700

csiph-web