Re: why did the WindowsError occur?

Discussion in 'Python' started by Dennis Lee Bieber, Sep 5, 2012.

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

    > On Tue, Sep 4, 2012 at 11:30 PM, Levi Nie <> 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
    HTTP://wlfraed.home.netcom.com/
    Dennis Lee Bieber, Sep 5, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miguel Dias Moura
    Replies:
    4
    Views:
    442
    Hans Kesting
    May 6, 2004
  2. Replies:
    1
    Views:
    276
    Terry Reedy
    Sep 27, 2005
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,739
    Smokey Grindel
    Dec 2, 2006
  4. Benjamin Kaplan

    Re: why did the WindowsError occur?

    Benjamin Kaplan, Sep 5, 2012, in forum: Python
    Replies:
    0
    Views:
    157
    Benjamin Kaplan
    Sep 5, 2012
  5. Mark Lawrence

    Re: why did the WindowsError occur?

    Mark Lawrence, Sep 5, 2012, in forum: Python
    Replies:
    3
    Views:
    164
    Chris Angelico
    Sep 5, 2012
Loading...

Share This Page