Re: Finding out if user has privileges to a diectory.

From: UJ (UJ_at_nowhere.com)
Date: 03/28/05


Date: Mon, 28 Mar 2005 08:30:09 -0500

Here's what I'm trying to do - I want to have a 'global' directory on the
network that users can write to. When the user attempts to write to the
directory, I need to make sure that they have writes to write to that
directory. I'd rather give them a nice message instead of doing a try/catch
when they are done (I'd like to let them know the directory doesn't
exist/they don't have rights to it before we start.)

Any suggestions?

TIA

Jeffrey.

"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:e4Qs50HMFHA.656@TK2MSFTNGP14.phx.gbl...
> There are several ways, but the most appropriate will depend on at least
> two criteria:
>
> 1. With what code access permissions will the code be running?
> 2. How do you define "access"? (See
> http://groups-beta.google.com/group/microsoft.public.dotnet.security/browse_frm/thread/de8d8902a906fc8e/382b60bb2c6f0737
> for a thread on a similar topic.)
>
>
> "UJ" <UJ@nowhere.com> wrote in message
> news:eTbognHMFHA.3832@TK2MSFTNGP12.phx.gbl...
>> How can I, through VB.NET, find out if somebody has access to a specified
>> directory? The directory will be on an 2000 Server.
>>
>> TIA.
>>
>> Jeffrey.
>>
>>
>
>



Relevant Pages