Well, honestly, the easiest way is to try to examine the contents of the
directory. If that works, create a temp file in the directory and delete
it. If you can do all three, you have full control. If you cannot create
the file, but you can read the contents, you have read access. If you
cannot read the directory, you have no access.
Just make sure to catch the exceptions and handle them appropriately.
I suppose you could inspect the ACLs on the directory itself, but it would
be harder than doing the things above.
--- Nick
"Steven" <wh**************@hotmail.com> wrote in message
news:1b*****************************@phx.gbl...
Does anyone know if there is a way to check the access
permissions of different users using C#? I need to know
if a user has full control or if they have read only
access or none to a certain directory. I have seen
different ways to set the permissions but none to read
them. Any help would be appreciated. Thanks in advance.