Files attributes Read Only in Program files

M

Munteanu Gabriel

I need to have read write attributes for C:\Program
Files\Mydirectory\myfile, but whatever i do Vista Bussiness set the
attributes back to RO. Thanks
 
J

Jimmy Brush

Hello,

You need to add a permission on the security tab that gives your username
write access.

The read-only attribute isn't causing the access issue. (Also, folders don't
have read-only attributes; that box is only there so you can easily
set/clear this attribute on the files inside of that folder).


--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/
 
M

Munteanu Gabriel

Thank you for the tip. I presumed that having an administrator type user I
would inherit the full control.

But now. Another question is raised.

How can I automate that from Access? An ordinary user will never be able to
do that?

An Administrator type user does not inherit the read-write rights ?

Or should I make the installer for another folder outside Program files?
 
J

Jimmy Brush

An administrative user has write access to this folder.

However, in Windows Vista, applications cannot USE this right unless they
ask the user for permission ("Windows needs your permission to continue").

So, accessing this location will fail from Access, even if the user is an
administrator.

What kind of data are you needing to modify here? Can you put it in the
user's profile folder instead of a machine-wide location? if so, that will
solve this problem.


--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/
 

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

Top