Post by jo
@="Clear Read Only flag"
@="attrib -R \"%1\\*.*\" /s"
I just cleared the read only attribute on a folder with 9 nine
subfolders (three deep) and 142 files. It worked perfectly and
Thanks for the reg. code, which I've now added too. It is based
on the MSDOS attrib command as Nick noted, and is a 'quick & dirty'
adaptation of a DOS batch command with it's unutilizable command
line param. (in @="attrib -R \"%1\\*.*\" /s") which allows a DOS
user to clear the R attribute anywhere without having to first
change directories (much more easily done in a windows file browser
than in DOS). I didn't immediately see the Clear Readonly link on
the crystalsoftware website (it appeared to be a text description of
the ClipSize utility) so I just typed the entry manually using
I could have copied it from your msg., but that would have been
TOO easy. It didn't work at first due to not removing one of the
'\' escape characters, which produced a DOS Parse Error 8 msg.
That's what led me to simplifying the command, producing "attrib -R
*.* /s". It's unfortunate that the right-click menu doesn't have
submenus allowing the choice of -R, +R, -S, +S, -H, +H, etc. since
adding all of these to the menu would grow it beyond a reasonable
size. I wonder if the registry design permits right-click submenus?
Anyway since using Regedit can be risky, for anyone wanting to
roll their own here are two easier to use templates, since the batch
file junk has been removed:
@="Clear Read Only flag in this folder ONLY"
@="attrib -R *.*"
@="Clear all attribute flags here and in subs"
@="attrib -R -H -S *.* /s"