폴더 권한 체크

VNote 2018.05.01 14:06:24 *: Module Module1

Sub Main()
Dim fileSec = System.IO.File.GetAccessControl("d:\test", Security.AccessControl.AccessControlSections.Access)
Dim accessRules = fileSec.GetAccessRules(True, True, GetType(System.Security.Principal.NTAccount))
For Each rule As System.Security.AccessControl.FileSystemAccessRule In accessRules
Console.WriteLine(rule.IdentityReference.Value)
Console.WriteLine(rule.AccessControlType.ToString())
Console.WriteLine(rule.FileSystemRights.ToString())
Console.ReadKey()
Next
End Sub

End Module

콘솔 응용프로그램