Proper Syntax of Attrib Command any Why it is used
Hai,
How are you ?
Attrib is a Disk Operating System (DOS) command which can add and remove various attributes like read / write / system / hide / archive etc. Some Antivirus programs may hide the files on suspecting that, the file may be infected. In such case, the files or folders in your pen drive might be hidden which occupies space. You can remove the hidden attribute on using the ATTRIB command. Steps as below.
1. You need to go to Command Prompt from the windows environment first. If you are using WIN XP, it is Start –> Run –> Cmd. If you are using WIN 7, Start –>Search Programs –> cmd.
2.At the command prompt, move to your Pen Drive by typing the drive name followed by : and Enter. (Example : If the pen drive is D you have to type d: and Enter.
3.Now you can give the command Attrib /ah and Enter, which will show you the hidden file names and folders.
4.Now you have to take one folder name or file name from the list. (For example : If the folder name accounts is listed ), you may give the command ATTRIB -h -s -r-and Enter. This will release the attribute of this particular folder. Now you could see the folder accounts in the my computer window from windows.
5.The step 4 to be repeated with rest of the files or folders listed in step 3.
Hope this is has helped