How do I write to a private folder?

H

Hung Nguyen

Hi all,

I am trying to write a stand alone C# Console program with .NET framework.
The program will create a folder in a existing folder. The existing folder
is set with "Make this folder private" and "Encrypt contents to secure
data". I tried LogonUser, Impersonate, AddPermission to PermissionSet but
none of them work. The error is "Access to ... is denied" eventhough I run
the program in the same account that I used to create the folder. I dont
have any problem to create to any other folders without the private and
encrypt setting. I am using Windows XP, NTFS and the existing folder is
created in user profile directory.

Please help.

TIA
Hung Nguyen
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top