How to get specific folder permission

M

Milan

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
 
M

Mattias Sjögren

But it gives error when trying to generates files in Documents and
Settings folder.

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

Can i know before wrting to folder its permission ?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top