Monday 23 September 2013

Understanding ATTRIB Command in cmd ( windows)

Attrib command can be used to assign or remove permissions to files or drives in our computers.

We have previously seen this command in retrieving files hidden by virus by making them into shortcuts.

The command we used there is attrib /s /d -r -a -s -h *

Understanding attrib:

To add permission we can use + symbol.
To remove permission we can use -  symbol.

R-Read-Only
A-Archive
S-System
H- Hidden

/S -> Process matching files in current folder and sub folder.
/D ->Process the folders.

* ->Refers to all files and folders in a directory.

You could also find the help page for attrib command from the command prompt:



Thank You :)

No comments:

Post a Comment

Please add your valuable comments.We appreciate it.