Re: why did the WindowsError occur?

Discussion in 'Python' started by Benjamin Kaplan, Sep 5, 2012.

  1. 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.
     
    Benjamin Kaplan, 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:
    475
    Hans Kesting
    May 6, 2004
  2. Replies:
    1
    Views:
    292
    Terry Reedy
    Sep 27, 2005
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,128
    Smokey Grindel
    Dec 2, 2006
  4. Mark Lawrence

    Re: why did the WindowsError occur?

    Mark Lawrence, Sep 5, 2012, in forum: Python
    Replies:
    3
    Views:
    192
    Chris Angelico
    Sep 5, 2012
  5. Dennis Lee Bieber

    Re: why did the WindowsError occur?

    Dennis Lee Bieber, Sep 5, 2012, in forum: Python
    Replies:
    0
    Views:
    179
    Dennis Lee Bieber
    Sep 5, 2012
Loading...

Share This Page