Hi Tim,
I'm afraid there isn't such a way to see if the two paths points to the
same file directly. However, you can partially achieve this in an indirect
way.
If you have write permission to that share folder, you can make some tags
on the file. And then access the file with another path string to see if
the tag is available. This requires that you have write permission to
either folder.
HTH
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: "Tim Marsden" <
[email protected]>
| Subject: Determine if 2 files are from the same directory.
| Date: Fri, 3 Oct 2003 11:08:56 +0100
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#
[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: dial81-135-52-82.in-addr.btopenworld.com 81.135.52.82
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:143369
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| HI
|
| If I have 2 strings each containing a Path string, but in different
formats.
| e.g.
|
| 1. "D:\My Folder\My Sub Folder\A.txt"
| and
| 2. "\\ComputerA\Share B\A.txt"
|
| Now do I compare these to see if they are they reference the same file.
|
| Tim
|
|
|
|
|