Article View: borland.public.cppbuilder.nativeapi
Article #15620Re: Do two filenames refer to the same file?
From: Hans Galema
Date: Mon, 23 Jun 2003 15:30
Date: Mon, 23 Jun 2003 15:30
15 lines
1458 bytes
1458 bytes
Dave Richards wrote: > Does anyone know a way to tell if two filenames actually refer to the > same file? > > For example: > c:\temp\share\alongfilename.txt > \\computer\share\alongfilename.txt > c:\temp\share\alongf~1.txt > could all be the same file. Use the functions GetShortPathName and GetLongPathName that convert short to long and long to short. Hans.
Technical Details
Message-ID:
<3ef71d04$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ef71b22$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2c2c71073b219929 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-23 08:39:07 PST Date: Mon, 23 Jun 2003 17:30:36 +0200 From: Hans Galema <j.m.galema.dontusethis@maartens.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Do two filenames refer to the same file? References: <3ef71b22$1@newsgroups.borland.com> In-Reply-To: <3ef71b22$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3ef71d04$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1056382212 129.125.108.11 (23 Jun 2003 08:30:12 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail