Files attributes Read Only in Program files

  • Thread starter Thread starter Munteanu Gabriel
  • Start date Start date
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
 
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/
 
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?
 
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/
 
Back
Top