Testing a UNC Path's “Accessability”

后端 未结 2 2011
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 19:27

My program requires access to a certain UNC path, but the path is cross-domain, so depending on the machine the program is being run on, it may or may not have default crede

2条回答
  •  情书的邮戳
    2021-01-18 20:11

    I have never done this, but what you may be asking to do is check the Access Control List (ACL) in NTFS.

    I did a web search for c# and "Access Control List" and got a couple of hits that may be of interest to you. This may be cleaner, but it may not be easier that what you are already doing.

提交回复
热议问题