Posted on Leave a comment

How to remove virus from pen drive or hard disk

Here are the basic attributes of the ‘attrib’ command:

R – represents the “Read-only” attribute of a file or folder. Read-only means the file cannot be written on or executed.
H – the “Hidden” attribute.
– stands for “Archiving” which prepares a file for archiving.
– the “System” attribute changes the selected files or folders from user files into system files.
– “not content indexed file” attribute.

“attrib” Syntax:

ATTRIB [+ attribute | – attribute] [pathname] [/S [/D]]

In the above command, let’s see what the different parameters and switches are:

‘+ / –’: To enact or to cancel the specified attribute.
‘attribute’: As explained above.
‘/S’: Searching throughout the entire path including subfolders.
‘/D’:  Include any process folder.
‘pathname’: Path where the target file or folder is located.

Here is the proper syntax order for attrib command:

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I] [drive:][path][filename] [/S [/D] [/L]]

Leave a Reply

Your email address will not be published. Required fields are marked *