General Hide and Unhide Files and Folders in Windows 11


  • Staff
Hide_selected_items_banner.png

This tutorial will show you how to hide or unhide files and folders in Windows 10 and Windows 11.

Hidden files, folders, and drives do not show by default in Windows.

Hidden files, folders, and drives are marked with the hidden attribute.

Protected operating system files are marked with the hidden and system attributes.

When you Show hidden files, folders, and drives, their icons will appear dimmed (faded) in File Explorer to indicate they are hidden items.

When you Don't show hidden files, folders, or drives, hidden items will now appear in File Explorer.


Contents





Option One

Hide and Unhide File(s) in Properties


1 Select one or more files you want to hide or unhide.

2 Right click or press and hold on the selected file(s), and click/tap on Properties. (see screenshot below)

File_hidden_attribute_properties-1.png

3 In the General tab, check (hide) or uncheck (unhide) the Hidden attribute for what you want, and click/tap on OK. (see screenshot below)

File_hidden_attribute_properties-2.png




Option Two

Hide and Unhide Folder(s) in Properties


1 Select one or more folders you want to hide or unhide.

2 Right click or press and hold on the selected folder(s), and click/tap on Properties. (see screenshot below)

Folder_hidden_attribute_properties-1.png

3 In the General tab, check (hide) or uncheck (unhide) the Hidden attribute for what you want, and click/tap on OK. (see screenshot below)

Folder_hidden_attribute_properties-2.png

4 If a selected folder has contents, select (dot) to either Apply changes to this folder only or Apply changes to this folder, subfolders and files for what you want, and click/tap on OK. (see screenshotd below)

hide.png
unhide.png




Option Three

Hide and Unhide File using Command


1 Open Windows Terminal or Windows Terminal (Admin) based on the access permissions you have for the file, and select either Windows PowerShell or Command Prompt.

2 Type the command below you want to use into the command prompt, and press Enter. (see screenshots below)

(hide file)
attrib +h "full path of file"

OR​

(unhide file)
attrib -s -h "full path of file"

Substitute full path of file in the command above with the actual full path of the file with extension you want to hide or unhide.

For example:
attrib +h "C:\Users\Brink\Desktop\file.txt"

attrib -s -h "C:\Users\Brink\Desktop\file.txt"


File_hidden_attribute_command-1.png

File_hidden_attribute_command-2.png





Option Four

Hide and Unhide Folder using Command


1 Open Windows Terminal or Windows Terminal (Admin) based on the access permissions you have for the folder, and select either Windows PowerShell or Command Prompt.

2 Type the command below you want to use into the command prompt, and press Enter. (see screenshots below)


 Hide or Unhide this Folder Only

(hide)
attrib +h "full path of folder"

OR​

(unhide)
attrib -s -h "full path of folder"

Substitute full path of file in the command above with the actual full path of the folder you want to hide or unhide.

For example:
attrib +h "C:\Users\Brink\Desktop\folder"

attrib -s -h "C:\Users\Brink\Desktop\folder"



Folder_hidden_attribute_command-1.png
Folder_hidden_attribute_command-2.png


 Hide or Unhide this Folder, Subfolders and Files

(hide)
attrib +h "full path of folder" | attrib +h "full path of folder\*" /s /d

OR​

(unhide)
attrib -s -h "full path of folder" | attrib -s -h "full path of folder\*" /s /d

Substitute full path of folder in the command above with the actual full path of the folder you want to hide or unhide.

For example:
attrib +h "C:\Users\Brink\Desktop\Folder" | attrib +h "C:\Users\Brink\Desktop\Folder\*" /s /d

attrib -s -h "C:\Users\Brink\Desktop\Folder" | attrib -s -h "C:\Users\Brink\Desktop\Folder\*" /s /d



Folder_hidden_attribute_command-3.png
Folder_hidden_attribute_command-4.png


That's it,
Shawn Brink


 

Attachments

  • Hide_selected_items.png
    Hide_selected_items.png
    3.1 KB · Views: 116
Last edited:
Back
Top Bottom