How to Hide Files and Folder in Windows 10

Sometimes we need to hide files and folders in Windows 10 if we don’t want to share with anyone else. Files and folders may have some important and private data that we can’t share with anyone else. The simple solution to this is we can hide the data. In this guide, we will walk you through the steps to hide files and Folder in Windows 10.

Hide Files and Folder in Windows 10

  1. First of all, open File Explorer and then navigate to the directory where your files or folder is saved. 
  2. Next, right-click the File or Folder that you want to hide and then open its properties. 
  3. In the Properties window, under the General tab, check the “Hidden” option box.
How to Hide Files and Folder in Windows 10
  1. Click the Apply button and then OK. (Apply changes to this folder, subfolders, and files).

Now folder, subfolders, and all the files are completely hidden. To view the hidden Folders and Files, select the view option, and enable hidden items. Once you’ve enabled this option, then you can see the hidden items.

How to Hide Folder and Files using CMD

You can also use the command prompt to hide the files and folders

  1. Click the start menu and search the Command Prompt.
  2. Once you get the command prompt in the search result, then open it.
  3. Next, navigate to the location of the files or folder that you want to hide. 
  4. Enter the following command to navigate the directory location. 

The “cd” command is used to change the directory, and “cd ..” to come back to the parent directory. The following command is only a example.

command: cd c:\users\admin\desktop\files

Replace the path after the C:\ with the location of your file or folder.

If your files and folders are in the D or F disk partition, use the following command to navigate to the disk partition.

Command: D:
  1. Now enter the following command to hide the folder. 
Command: attrib +h "Your File/Folder Name"
Hide Files and Folder in Windows 10
  1. Now the file or folder is completely hidden. 
  2. To hide all items inside the hidden folder, use the following commands. 

Navigate to the hidden Folder:

Command: cd " Hidden Folder Name"

Set the attributes:

Command: attrib +h /s /d

This will hide all the subfolder and files. 

Note: To remove the hidden attribute, use the following commands.  

Remove hidden attribute from Folder: attrib -h “Folder Name”

Remove Hidden attribute from all the files and subfolders: attrib -h /s /d

Hide Files and Folder in Windows 10

I hope this guide is helpful for you, and now you’re able to hide files and folder in Windows 10.

Leave your reply here

Scroll to Top