Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: why did the WindowsError occur?

Thread Tools

Re: why did the WindowsError occur?

Dennis Lee Bieber
Posts: n/a
On Tue, 4 Sep 2012 23:37:57 -0700, Benjamin Kaplan
<(E-Mail Removed)> declaimed the following in

> On Tue, Sep 4, 2012 at 11:30 PM, Levi Nie <(E-Mail Removed)> 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 Removed) HTTP://

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: why did the WindowsError occur? Mark Lawrence Python 3 09-05-2012 01:13 PM
Re: why did the WindowsError occur? Benjamin Kaplan Python 0 09-05-2012 06:37 AM
WindowsError: [Error 5] Access is denied With _winreg.enum black_13 Python 2 11-28-2007 04:30 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
WindowsError: stack overflow Python 1 09-27-2005 06:52 PM