File permission PROBLEM

Erdenemandal

Well-known member
Joined
Jul 5, 2004
Messages
63
Location
Deutschland
Hi, ALL

I have a problem with file access . I using xml file for my configuration. During installation a program creates "TempData" into "c:\Documents AND Settings\All User\Application Data\".

I think "all user" folder has write/READ permission for all users of this PC. But during installation I use "Administration" and created and copied template xml file. When I change configuration and tries to save xml, it gives me Error

Now I want to ask
1. How I can change folder permission (like chmod)
2. Is there any template folder for all user ?

I am using ReadXML and WriteXML method for file access

Regards,
Erdene
 
I dont know about ReadXML and WriteXML, but if they use streams, you have to make sure you close the streams... like, if you open it with a stream, then you try to write to it on another stream, it wont work...

Doesnt sound like your problem though...
 
Sorry. I am using XML so that I need to USE REad and Write XML. Now I am using current user folder instead of "All user".

Just reading "APPDATA" from regedit and copy my temp file into it.

Regards,
Erdene
 
Back
Top