What is ATTRIB and How to use it in Command Prompt

Another external command, use of the Microsoft Disk Operating System (MS-DOS) or commonly called as command prompt in your computer are called ATTRIB. This external command works as important command you can use in your computer. This works as attributes to set the files to read only, hidden, achieved, and a system.

The general form of ATTRIB command is ATTRIB attribute file-name. See the image below.

MS-DOS_Command
In the picture above, the filename is the name of the file (including drive and path specifiers) that will have its attributes changed or examined.

Windows_Files_And_Folders
The image above is an example how I set the example folder as my file to hide. Using the attribute and attributes + and - H, I can enable and disable the hidden file folder called example, in drive c:, see the image below:

MS-DOS

In the image above, the location of the file folder called EXAMPLE is located in drive c:, as command DIR in the command line of MS-DOS. Then in the next command line I execute ATTRIB +H EXAMPLE to enable to hide the file. You will examine in my next command of DIR. Then I use ATTRIB -H EXAMPLE to disable to hide the file.

MS-DOS

In the image above, I'm using all the attributes ATTRIB +H +R +A +S FILENAME. Where H is hidden, R is read only, A is achieved, and S is the system. Since I'm using + (plus) it is understood to hide the files using all the attributes. Then in my next command is I'm using the - (minus) to unhide the file.

MS-DOS

This image shown the use of the ATTRIB using the wildcard character the * (asterisk). This is very useful to hide or unhide the files with the same extension file, such as the .TXT or .DOCX or any other extension files. Using the attributes hidden, archived, read only, and system.

Using the Attrib command of MS-DOS, this is very helpful in case your file is hidden like the cause of a virus and after virus scanning the file. Because there are tendency your file will be hidden. Or you need to hide any files which are confidential.

OTHER REFERENCES:


What is ATTRIB and How to use it in Command Prompt Arnel Cartoneros 5 of 5
Another external command, use of the Microsoft Disk Operating System (MS-DOS) or commonly called as command prompt in your computer are c...
Share on Google Plus

About Arnel Cartoneros

Arnel is a Blog creator and writer, A founder and publisher of www.combinebasic.com and www.nuggetro.info. Part time Computer Instructor, Computer And Electronic Technician, And performing job as Biomedical Machine Specialist. I'm an avid fan of social media and very interested in Technical information and innovation.

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

If you have questions and comments pls. leave it here! You can post comments if you have google accounts. Thank you...