Hello Jeff,
> Given two file paths, I would like to determine with certainty whether
> those paths refer to the same physical file.
> I was just wondering if this sort of mapping is already written and
> available to me.
I don't think a ready-made function exists for this, either in .NET or
Windows API. At least in .NET, you would need to enumerate the shares on the
(local) computer, and then check to which paths they point to. Note that on
NTFS, you can also mount disk partitions into directories, i.e. your regular
"E:\" could be mounted to "C:\MoreStuff".
So to make sure your code would work in all situations, your solution would
become quite complex, I'm afraid. However, in case of UNC paths and share on
the local computer, the solution ought to be quite straightforward.
Hope this helps!
--
Regards,
Jani Järvinen
C# MVP
Vantaa, Finland
E-mail:
(E-Mail Removed)
Business:
http://www.nimacon.net/
Personal:
http://www.saunalahti.fi/janij/