Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, March 11, 2011 12:45 PM
Hi all,
Is there a tool that can look through the attributes on files and folders and report the ones with read only set? I have had a problem with ACL and now read only attribute when moving our main file store from a 2003 to a 2008 box both on same domain using robocopy. I have fixed the ACL issue with secfix switch on robocopy but now a few files and folders are marked readonly - I need to find them all before we can put the new store online.
Many thanks
Rhys
All replies (2)
Sunday, March 13, 2011 3:54 AM âś…Answered | 1 vote
the dir /a? syntax where ? = attribute to search for
common examples
dir /ar /s = read only files
dir /ah /s = hidden files
dir /as /s = system files
DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
[/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
[drive:][path][filename]
Specifies drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D Directories R Read-only files
H Hidden files A Files ready for archiving
S System files - Prefix meaning not
Monday, March 14, 2011 4:26 PM
Thanks very much, never thought of dir!