Groups | Blog | Home
all groups > dotnet faqs > october 2006 >

dotnet faqs : How to get specific folder permission



Milan
10/25/2006 5:36:08 AM
Hi,

I am new to this group.
I am developing product on .net. It generates some XML files.
But it gives error when trying to generates files in Documents and
Settings folder.
It gives error says "No permission to write or Not authorized to
write".
(Checked Machine permission is set everyone to read and write)
Can i know before wrting to folder its permission ?

Milan
Mattias Sjögren
10/29/2006 9:02:46 PM
[quoted text, click to view]

Directly under Documents and Settings, or under the current user's
subdirectory?


[quoted text, click to view]

Yes, but why do oyu need to know. Even if you check before writing,
the permissions could have changed by the time you actually write. So
you should be prepared to catch permission exceptions anyway.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
AddThis Social Bookmark Button