Re: Setting file/directory permissions

From: Marten Engblom (nospam_at_nospam.com)
Date: 03/25/05


Date: Fri, 25 Mar 2005 15:04:52 -0800

This is the best I have found:
http://support.microsoft.com/kb/818362/EN-US/

If anyone has a better solution, please post it.

Marten

"Steve Bugden" <SteveBugden@discussions.microsoft.com> wrote in message
news:43AD335B-F036-48BC-A0A0-6354B8D4A399@microsoft.com...
> Hi,
>
> Is there a simple way to set file/directory permissions programatically in
> .net.
>
> All I want to do is to check that I have write access to a file or
> directory. If I don't have access I want to change the permission of the
file
> before writing.
>
> I assume that the assembly that makes the change would need some kind of
> permission to do it.
>
> The files are installed on an ISPs web server, and for some reason unknown
> the permissions change unpredictably, could be to do with ftp and
frontpage
> server extensions but I am not in a position to make any changes there.
>
> Many thanks in anticipation,
>
> Steve.
>



Relevant Pages

  • Re: Setting file/directory permissions
    ... > Is there a simple way to set file/directory permissions programatically in ... > The files are installed on an ISPs web server, and for some reason unknown ...
    (microsoft.public.dotnet.framework)
  • Setting file/directory permissions
    ... Is there a simple way to set file/directory permissions programatically in ... The files are installed on an ISPs web server, ... the permissions change unpredictably, could be to do with ftp and frontpage ...
    (microsoft.public.dotnet.framework)