How to hide files and folders




 

How to hide or unhide folders using the attrib command in a command prompt window. The attrib command is very helpful for hiding a folder completely, in other words by using attrib command our folder is hidden and isn’t visible when we select to show all files and folders. This command provides security benefits for our software programs and important documents from other users.

 

  1. Open the command prompt.

To open the command shell 1, press Window+r and type “cmd” then press Enter

2. For hide files and folders just type this command:

attrib +s +h “filename”   shown in below image

 

3. For unhide files and folders just type this command:

attrib -s -h “filename”  shown in below image

 

 

What is attrib?

The attrib command is a Windows command prompt command. The main purpose of this command is to remove and set file attributes (hidden, read-only, system and archive). The attributes provide security to software programs. It displays, sets or removes the read-only, hidden and archive file attributes assigned for a file or directory.