Delphi - comparing two paths when one is UNC and one is alphabetic

I have a situation where the user can specify two different path names, and I need to check if one name is “inside” another. I can do this if both paths are UNC, or both are based on letter notation, but what if they are mixed?

Can you "normalize" the path, for example, "C: \ Program Files", to "\\ [this is the computer name] \ C \ Program Files"? Obviously, I cannot go the other way, since a network folder in UNC format may not have the corresponding drive letter mapped to it.

+5
source share
1 answer
+6

All Articles