+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden 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.
...so, if you want to make virus.exe in c:\stuff directory non-system, you'd do the following. C:\stuff>attrib -S virus.exe. The /s switch allows you to catch the contents all subfolders and /d operates on the folders themselves.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.