why did the WindowsError occur?
Benjamin Kaplan
benjamin.kaplan at case.edu
Wed Sep 5 02:37:57 EDT 2012
On Tue, Sep 4, 2012 at 11:30 PM, Levi Nie <levinie001 at 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.
More information about the Python-list
mailing list