folder permission is "read" only

J

Janis

I am trying to automate the JEtcompact utility to compact an Access database
using the command line. I think I have the right command sequence but the
script doesn't work. I notice the folder with the database I want to compact
is read only. I unselect "read" by clicking "apply" and "save". I do it
but go back into the folder and "read"
is re-selected as if I never changed the folder permission. I went into
safe mode and tried it there and the same phenomenon happened. I even logged
in as Administrator in SAfe mode although my account has administration
priveleges and the same thing happened. Is there a setting somewhere I can
make all folders "read" and "write" or just get rid of this "read" only
permission that seems permanently embedded in my file system just to get this
script to work?
thanks,
 
A

Andrew McLaren

Janis said:
I am trying to automate the JEtcompact utility to compact an Access
database
using the command line. I think I have the right command sequence but the
script doesn't work. I notice the folder with the database I want to
compact
is read only. I unselect "read" by clicking "apply" and "save". I do
it

Hi Janis,

Generally the read-only attribute has no effect on folders - it does not
prevent you from writing to a file contained in that folder.

Windows Explorer uses the read-only attribute for an unrelated purpose: to
determine whether the folder has customised views or not.

See this Microsoft Knowledgebase article:

http://support.microsoft.com/kb/326549/

File attributes like Archive, Hidden, Read-Only and System are holdovers
from the old FAT file system in DOS; they don't really apply to the NTFS
file system. The attributes were retained to provide compatibility for old
DOS and Windows 3.x apps running on Windows NT. On an NTFS file system, the
way to control access to a file is by using ACLs - as displayed under the
"Security" tab of a file or folder's Properties dialogue.

It's possible your script is failing because it cannot write to the database
file - but if so, the cause while be somewhere else, rather than the
Folder's attributes.

Hope it helps,

Andrew
 
I

Ian D

Janis said:
I am trying to automate the JEtcompact utility to compact an Access
database
using the command line. I think I have the right command sequence but the
script doesn't work. I notice the folder with the database I want to
compact
is read only. I unselect "read" by clicking "apply" and "save". I do
it
but go back into the folder and "read"
is re-selected as if I never changed the folder permission. I went into
safe mode and tried it there and the same phenomenon happened. I even
logged
in as Administrator in SAfe mode although my account has administration
priveleges and the same thing happened. Is there a setting somewhere I
can
make all folders "read" and "write" or just get rid of this "read" only
permission that seems permanently embedded in my file system just to get
this
script to work?
thanks,

It's not read-only, the light green square means it's ignored. If
it was read-only it would have a check mark.
 

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