Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'error:': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'import': 0.21; 'help.': 0.22; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.28; 'from:addr:yahoo.co.uk': 0.32; 'problem': 0.33; 'to:addr:python-list': 0.33; 'code:': 0.33; 'likely': 0.33; 'done': 0.34; 'subject:?': 0.35; 'something': 0.35; 'received:org': 0.36; 'far': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'skip:o 20': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; "you've": 0.61; 'world': 0.63; 'more': 0.63; 'here': 0.65; '[error': 0.84; 'amongst': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: why did the WindowsError occur? Date: Wed, 05 Sep 2012 08:52:57 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-29-55.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: X-Antivirus: avast! (VPS 120904-1, 04/09/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1346831518 news.xs4all.nl 6928 [2001:888:2000:d::a6]:35321 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28462 On 05/09/2012 07:30, 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' > > > Because you've done something wrong. If you'd like to tell us what you've done to find out where the problem is, we are far more likely to help. Please remember that the rates of pay here are amongst the lowest in the world :) -- Cheers. Mark Lawrence.