Article View: borland.public.cppbuilder.nativeapi
Article #13835Re: Excel Exists on machine?
From: Alan Bellingham
Date: Wed, 17 Sep 2003 11:29
Date: Wed, 17 Sep 2003 11:29
29 lines
1970 bytes
1970 bytes
"Ed Mulroy [TeamB]" <ed@mulroyREMOVETHESECHARS.org> wrote: >You could attack it in a couple of ways. > >Search for excel.exe > >Look for file associations in the registry. > For instance HKEY_CLASSES_ROOT\.csv with a value of "Excel.CSV" > or one of the other associations it registers such as .xls > >All the file associations tell you however is if excel has once been on the >machine. Only searching for excel.exe will tell you that it is on the >machine now. Yup. However, actually searching could be horribly slow. The best strategy (in my view) is to follow through the registry entry chain to work out how (or if, or course) the system would try to open an Excel data file. Then look to see if excel actually exists in the location that gives you. It's possible that the result isn't actually Excel, merely whatever the system has been told to use on Excel files. Alan Bellingham -- alanb@episys.com
Technical Details
Message-ID:
<a7hgmvgm8j8n0062v4jnjp44iui0e4ocpb@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6956ac1eb736942d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-17 04:42:55 PST From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Excel Exists on machine? Date: Wed, 17 Sep 2003 12:29:44 +0100 Reply-To: alanb@episys.com Message-ID: <a7hgmvgm8j8n0062v4jnjp44iui0e4ocpb@4ax.com> References: <3f67b06e$1@newsgroups.borland.com> <3f67b90a@newsgroups.borland.com> X-Newsreader: Forte Agent 1.92/32.572 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 193.129.251.130 X-Trace: newsgroups.borland.com 1063798256 193.129.251.130 (17 Sep 2003 04:30:56 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail