Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Re: why did the WindowsError occur?

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

> 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
http://www.velocityreviews.com/forums/(E-Mail Removed) HTTP://wlfraed.home.netcom.com/

 
Reply With Quote
 
 
 
Reply

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 hardieca@hotmail.com Python 1 09-27-2005 06:52 PM



Advertisments