How to Hide a Folder in Windows?

If there is one thing that Windows is known for, then it is the customization ability that it brings to its users. This ability also extends to the folders one uses in Windows – primarily, the ability to hide them from peering eyes. In this article, we will be going through 2 methods to achieve Hiding and Viewing a Folder in Windows. One of the methods is executing commands in Command Prompt and the other one is using Windows GUI.

1. Using Command Prompt Method

Step 1: Select the folder that you want to hide. (For the purpose of the tutorial, we have created a new folder by right-clicking on the desktop and selecting “Sample Folder”)

hiding a folder in windows using cmd -1

Step 2: Copy the file directory of the folder by double-clicking on the same.

hiding a folder in windows using cmd - 2



Step 3: Now press the windows key plus r and type “cmd” in the Run Box.

hiding a folder in windows using cmd - 3

Step 4: Once Command Prompt opens, type in the following code.

hiding a folder in windows using cmd - 4

Step 5: As soon as you press enter, the folder will be hidden.

hiding a folder in windows using cmd - 5

To view the hidden folders, you can use the following:

  1. Press the Windows key + R and type “cmd” in the Run Box

    to view the hidden folder in windows using cmd - 1

  2. Now type the following on the cmd

    to view the hidden folder in windows using cmd - 2

2. Using Windows GUI Method

Step 1: Select the folder that you want to hide. (For the purposes of this tutorial, we have created a new folder by right-clicking on the desktop and selecting “New Folder”)



hiding a folder in windows - 1

hiding a folder in windows - 2

Step 2: Right click on the folder you want to hide and then click on “Properties”

hiding a folder in windows - 3

Step 3: Once the Properties window opens, select the box that says “Hidden”

hiding a folder in windows - 4

Step 4: Then click on “Apply”

hiding a folder in windows - 5

Once you click “Apply”, you can clearly see that the folder is Hidden.

To view the hidden folders, you can use the following:

  1. If you want to bring the folder back, then right-click on the Hidden folder again and go to “Properties”

    to view the hidden folder in windows - 1

  2. Deselect the box that says “Hidden”

    to view the hidden folder in windows - 2

  3. Once you have clicked “Apply”, the folder reverts back again.

    to view the hidden folder in windows - 3

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.