RSS

Changes file attributes with the attrib command

13 May

The only way to view the read/change the read attrib of a folder is with the attrib command.

C:\>attrib /?
Displays or changes file attributes.

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
[drive:][path][filename] [/S [/D] [/L]]

+ Sets an attribute.
– Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
I Not content indexed file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.
/L Work on the attributes of the Symbolic Link versus
the target of the Symbolic Link

And even when its set on a folder, the folder properties box will just show the same FULL square. Its a Tri-Mode Flag, depending on the theme your using it might show up as a “grayed” out check mark. Will toggle to checked, and then to empy, etc. Tri-Mode, its a method to allow you to “toggle the read attribute of the files under the folder – not the folder itself.

You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, or in Windows Vista

You cannot view or change the Read-only or System attributes of a folder by using the Properties dialog box for the folder.

Unlike the Read-only attribute for a file, the Read-only attribute for a folder is typically ignored by Windows, Windows components and accessories, and other programs. For example, you can delete, rename, and change a folder with the Read-only attribute by using Windows Explorer. The Read-only and System attributes is only used by Windows Explorer to determine whether the folder is a special folder, such as a system folder that has its view customized by Windows

Also you can DELETE any file you want, even if the Read Attribute is set, it does NOT stop you from deleting them.

Test it yourself, create a text file in your my docs or something, set the read attribute — now delete it.. Did the OS stop you? Look at that no it didn’t.

It just frustrating when the same questions come up over and over and over again.

As mentioned, media files can get locked — well really any type of file could get locked, etc. And yeah they might look like they got deleted but really didn’t.. But the Read Only Attribute had nothing to do with your issue I assure you!!

But since you did not give any details of the type of files, you see this quite often on the desktop when a user tries to delete a link some malware put up, and it gets put right back after reboot, etc.

Thanks to Mohamed Nadheem’s

Advertisements
 
Leave a comment

Posted by on May 13, 2013 in Windows

 

Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: