Can't remove "Read Only" from folders

G

Guest

Hi, Apparently whenever folders are created on my pc, they are marked as
"Read Only". This is causing programs to fail while creating new files. I
can't seem to remove the "Read Only" status from these folders. I
right-click the folder in Windows Explorer, select "Properties", uncheck the
"Read Only" radio button, and hit either OK or Apply. It appears to work,
but when I return to the properties page for that folder, the "Read Only"
radio button is checked again. I am logged in as the Administrator so I
should have full access to the folder.

How do I create folders without them being marked as Read Only and how do I
remove the Read Only flag from folders already created?

Thanks in advance for your help.

Kevin
 
G

Guest

Great! That did the trick! Thanks!

Although I have to comment that this is, IMO, a serious design flaw. Under
"Status" on the link you provided it says, "This behavior is by design".
When I create a folder in Windows Explorer, it should NOT mark it as Read
Only. If I want the folder to be Read Only, I will mark it as such myself.
Also, the properties dialog should allow me to remove the Read Only flag.
Requiring me to go to the command prompt and use the attrib command to remove
this flag is patently absurd.

Thanks again Jose!
 
G

Guest

Well, I spoke too soon. The Read Only flag has returned even after I do the
attrib command, "attrib -r -s <dirname>"

This is a serious design flaw, my programs are unable to create or modify
files in these directories. There must be some way to resolve this.
 
J

Jose Gallardo

Where are you creating the folder? Whenever I create a folder, it is marked whith "Read only" flag but I can create files inside it.
 
G

Guest

I have two physical drives (C and D). I am using Microsoft Visual Studio
2005 to write an app. I am running into two problems with Read Only folders.

1) The Help Compiler (hhc.exe in the Microsoft Help workshop) is unable to
create internal files during compilation.

2) The CArchive class fails (file arccore.cpp line 537) when trying to write
to the file. It is able to create the file, but the statement:

m_pFile->Write(m_lpBufStart, ULONG(m_lpBufCur - m_lpBufStart));

fails while trying to write data to the file if the file has been created in
a Read Only directory.
 
G

Guest

Better late than never! I used to have those kinds of problems but not
anymore!
Who's the boss? Do you want to be? In the 'Run' box type 'gpedit.msc' and go
to
Computer Configuration\Windows Settings\Security Settings\Local Policies\
User Rights Assignment. Enter the properties box for 'Take Ownership of
files or
other objects'. Click on 'Add User or Group', 'Advanced', 'Find Now'. Select
your
name and press OK, OK. You are now King, do whatever you want!
 

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