My need is simple. Given a Windows directory path all I want is the actual path. I am sure the terminology is wrong, so I am giving an example.
Given C:\Documents and Settings\All Users the method should display:
- C:\ProgramData on windows 7
- C:\Documents and Settings\All Users on windows 2003
This is because on windows 7 C:\Documents and Settings is a junction referencing C:\Users and C:\Users\All Users is yet another junction referencing C:\ProgramData, which is the actual directory.
So, my question is what .NET API lets me do all this?
Thanks.