For folders:
1. To unbind a folder from a disk (example):
attrib d:\ "program Files"-s-h/s/d
2, unblock all folders of a disk forcibly hidden (example):
attrib d:\ "*"-s-h/s/d
--friendly tip: In the example above, D: is the disk letter; The quotation marks are the folder name; related Command parameters:
+r Set read-only file properties.
-R Clears the read-only file attribute.
+a Set the archive properties.
-A clears the archive property.
+s Set the System file properties.
-S clears the system file properties.
+h set hidden file properties.
-H clears the hidden file properties.
/s applies attrib and any command-line options to matching files in the current directory and all of its subdirectories.
/d applies attrib and any command-line options to the directory.
/? Displays help at the command prompt.
For files:
ATTRIB [+r |-r] [+a |-A] [+s |-S] [+h |-h] [[Drive:] [path] filename] [/S [/d]]
+
- clears the attribute.
R read-only file properties.
A Archive File property.
S System file properties.
H hidden file properties.
[Drive:] [Path] [FileName] Specifies the file attributes to be processed.
/S handles matching files in the current folder and its subfolders.
/d also handles folders.
For example
Attrib-s-h-r C:\*.*
To unblock windows from hiding protected operating system files