So Right now I'm working on Directory Security permissions. I have the following code:
MsgBox("hi")
Dim myacc As New DirectorySecurity
myacc.AddAccessRule(New FileSystemAccessRule("MyUser", FileSystemRights.FullControl, AccessControlType.Allow))
IO.Directory.CreateDirectory("Test",myacc)
Which creates a directory "Test" and then tries to set a new access control to it. The problem is the Directory Security settings has inherit on automatically, How do I turn that off? And by turning that off will it automatically allow me to do what I need it to do, being remove all the users and setting "MyUser" to be the only one with access to it? I also need to set the owner of the directory. I've just been working on it for about an hour and at the point of "giving" up until another time. UGH