Folder Attrib?

K

kram

Is there a way to make a folder read-only so that no files can
be written into it?

I right-clicked a folder, clicked Propertiies, and selected the
Read-Only box, but that isn't keeping files from being written
there.

When I go back to Properties, the Read-Only check mark is
there, but looks grayed-out.

I tried setting the read-only attribute from Command Prompt,
but it says "Parameter format not correct".

attrib +r c:\folder

(the folder isn't really named folder; I used the folder's real
name when I executed the command)

I am using:
WinXP Home Edition v5.1.2600, Service Pack 2 build 2600
 
D

David Candy

No read only means nuffin on a folder. You are in the wrong area. You probably had a space in folder name so it was dumb to not paste the real name. Look at file and folder permissions.
 
M

Malke

Is there a way to make a folder read-only so that no files can
be written into it?

I right-clicked a folder, clicked Propertiies, and selected the
Read-Only box, but that isn't keeping files from being written
there.

When I go back to Properties, the Read-Only check mark is
there, but looks grayed-out.

I tried setting the read-only attribute from Command Prompt,
but it says "Parameter format not correct".

attrib +r c:\folder

(the folder isn't really named folder; I used the folder's real
name when I executed the command)

I am using:
WinXP Home Edition v5.1.2600, Service Pack 2 build 2600

As Mr. Candy told you, the read-only attribute is not applicable to
folders. If you are trying to set up permissions to protect a folder
from users, because you have XP Home you'll need to look outside the
native operating system for tools. Try Doug Knox's Security Console or
the Microsoft Shared Computer Toolkit.

http://www.dougknox.com/
http://www.microsoft.com/windowsxp/sharedaccess/default.mspx

Malke
 
K

Ken Blake, MVP

Is there a way to make a folder read-only so that no files can
be written into it?

No.


I right-clicked a folder, clicked Propertiies, and selected the
Read-Only box, but that isn't keeping files from being written
there.


If you'll look more closely at the check mark in that Read-Only box, you'll
see that it's gray, not black. You can also verify this by clicking a few
times in the box; it will cycle among *three* states: unchecked, checked in
black, and checked in gray.

A black check means the item is read-only and an unchecked box means it's
not read-only. But the gray check means that it's neither. The read-only
attribute is not pertinent to folders.

When I go back to Properties, the Read-Only check mark is
there, but looks grayed-out.


Exactly!
 

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