How to Hide a Folder in Windows?
Last Updated :
08 May, 2025
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")

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

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

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

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

To view the hidden folders, you can use the following:
1. Press the Windows key + R and type "cmd" in the Run Box 
2. Now type the following on the cmd 
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")

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

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

Step 4: Then click on "Apply"

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"
2. Deselect the box that says "Hidden"
3. Once you have clicked "Apply", the folder reverts back again. 
Similar Reads
How to Show Hidden Files and Folders in Windows 10 Hidden Files and Folders are generally system-protected features in Windows OS. This feature is generally used to hide files or folders to avoid any accidental usage. However, you can undo this setting to view hidden files and folders in Windows 10 by using a few simple steps. Here are different app
5 min read
How to Use File History in Windows? File History in Windows is a powerful feature that allows you to automatically back up your files, ensuring your data is safe and recoverable. We will walk you through the steps to enable and use File History in Windows, helping you protect your important documents, photos, and more.The Windows File
5 min read
How to Hide Taskbar in Windows 10? If you're looking to hide the taskbar in Windows 10, it's easy to do with just a few simple steps. Whether you prefer a cleaner desktop look or need more screen space, the auto-hide taskbar feature allows you to make the taskbar disappear until you hover over its location. In this guide, we'll walk
3 min read
How to Create an Unnamed file in Windows? There is curiosity hidden inside everyone. So when it comes to computers we all try to know why this is happening, what will happen if I run this software, what will happen if I delete some of Windows files and etc. We also sometimes try to make a file without a name in Windows and fail and then, fi
2 min read
How to Ignore a File in Git? In this article, we are going to discuss how to ignore files in Git. Essentially, you can ignore files by specifying them in the ".gitignore" file. Moreover, you can also ignore directories using this method. Throughout this article, we'll cover everything from creating a GitHub account to setting u
3 min read
How to Hide the Console Window of a C Program? The task is to hide the console window of a C program. The program for the same is given below. Note: The results of the following program can only be seen when it is executed on a console. C // C program to hide the console window #include <stdio.h> #include <windows.h> int main() { HW
2 min read