- May
- 13,834
- 211
Rex said, in another thread
Windows does not disallow CD access to directories with the S(ystem) attribute. Apparently, GLOBAL simply refuses to enter them.As I've said, "Show" is completely different from "Go To". Commands like DIR simply show the content of directories. DO, FOR, and GLOBAL actually have to CD into each directory before running their command arguments. It's the CD access that's being blocked (by Windows).
Code:
c:\programdata> echo %_elevated
0
c:\programdata> attrib /d Microsoft\
__S_D_______I__ C:\ProgramData\Microsoft
c:\programdata> cd Microsoft\
c:\programdata\microsoft> dir
Volume in drive C is unlabeled Serial number is b813:1d21
Directory of C:\ProgramData\Microsoft\*
2009-07-13 23:57 <DIR> Assistance
2012-03-09 15:35 <DIR> corecon
<snip>