> ## Content Index
> Fetch the complete content index at: https://www.techloy.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO: Hide and View Folders on Your Windows PC Using Command Prompt
- URL: https://www.techloy.com/how-to-hide-and-view-folders-on-your-windows-pc-using-command-prompt/
- Published: 2025-03-25T12:57:37.000Z
- Updated: 2025-03-25T12:57:37.000Z
- Description: Turn your PC into a private vault with this simple trick.
- Author: David Adubiina
- Tags: / Tech Guide, Microsoft Windows, Data Privacy

Sometimes, prying pals, poking parents, and persistent peekers can make your [PC](https://www.techloy.com/tag/pc/) feel like a public playground, and you start to wonder: is this really a *personal* computer or a *public* one?

Everyone in the house used my first-ever Windows laptop, which held a lot of my early poetry work. Despite hiding my precious folders using the standard [Windows](https://www.techloy.com/tag/microsoft-windows/) Properties > Hidden function, they still unintentionally deleted them. The experience was frustrating, to say the least.

If you’re the type of person who likes to keep things organized (or just values digital privacy), chances are your important folders have been accidentally deleted or *mysteriously disappeared* at least once.

To ensure this *never* happens again, here’s a simple yet powerful trick using Command Prompt (CMD) that goes beyond the [usual "Hidden" function](https://www.techloy.com/how-to-hide-folders-on-windows-10-11/)—keeping your files out of sight.

[How to Hide Folders on Your Windows 10 and 11 PCKeeping sensitive files and personal data private is essential, and Windows provides built-in features to help you achieve this. Whether you’re using Windows 10 or have recently upgraded to Windows 11, we will walk you through the steps to hide your folders securely. By the end of this tutorial, you’ll![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/icon/techloy-avatar-1-1176.png)TechloyGabriel Ojeh![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/thumbnail/photo-1499914485622-a88fac536970-1)](https://www.techloy.com/how-to-hide-folders-on-windows-10-11/)

## Steps to Hide and View Folders on Your Windows PC Using Command Prompt 

### Step 1\. Go to the tab where your target folder or files is stored. (For example, if it's on your Desktop, open the **Desktop tab**.)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1425--1.png)

### Step 2: Right-click the address bar, select "Edit address," type **cmd**, and press **Enter** to open the command window.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1429--1.png)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1430--1.png)

### Step 3\. Type the following command and press **Enter**: attrib +h +s +r FolderName *(Replace "FolderName" with the actual name of your folder and ensure it is in quotes"".)*

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1431--1.png)

### Step 4\. Once you hit Enter, the folder will **immediately disappear** from File Explorer. Even if someone enables "Show Hidden Files," they *still* won’t be able to find it.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1433--1.png)

## **Step To Restore the Folder When Needed**

### Step 1\. Type the following command in the Command Prompt (CMD) window and press **Enter**: attrib -h -s -r FolderName. This will make your folder visible again, exactly where you left it.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1434--1.png)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/03/Screenshot--1435--1.png)

## **Conclusion**

The default Windows "Hidden" function is great—if you’re trying to keep things hidden from *older people*. But if you need a more secure method to prevent accidental deletions, unwanted access, or just a bit of digital privacy, this CMD trick is your best bet.

Now that you know how to make folders disappear (and bring them back when needed), go ahead and put this trick to good use! Just don’t let your friends know this—or you might end up seeking other ways to secure your files from *prying hands*! 

*Image credit: David Adubiina/Techloy.com*