如何确定目录路径是否为SUBST

pet*_*amd 6 c# security directory

如何确定文件是否位于SUBST的文件夹中或使用C#位于用户文件夹中?

Han*_*ant 3

我认为您需要 P/Invoke QueryDosDevice() 来获取驱动器号。Subst 驱动器将返回一个符号链接,类似于 \??\C:\blah。\??\ 前缀表示它已被替换,其余部分为您提供驱动器+目录。