Is there a way, within the .net framework, to check to see if two different shared folders are actually pointing to the same physical directory? Do directories in Windows have some sort of unique identifier? Google-fu is failing me.
(I mean, aside from writing a temp file to one and seeing if it appears in the other)
Edit: I think I’ve discovered what I need,with thanks to Brody for getting me pointed in the right direction in the System.Management namespace.
I believe using WMI queries will take care of what I need to do:
And the Path attribute will give me the physical path of the share, which I can use to compare the two shares.