How can I figure out if a file is in a folder that has been SUBST'ed or is located in a user folder using C#?
I think you need to P/Invoke QueryDosDevice() for the drive letter. Subst drives will return a symbolic link, similar to ??C:lah. The ?? prefix indicates it is substituted, the rest gives you the drive+directory.
1.4m articles
1.4m replys
5 comments
57.0k users