Published by


Brink's Avatar
Administrator

Posts: 28,495

Show Printable Version 


How to Set or Unset Hidden Attribute of Files and Folders in Windows 10

information   Information
In Windows, you can set or clear the hidden attribute for files and folders to hide or unhide them.

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

If you have Windows set to show hidden files, folders, and drives, hidden items will be faded (dimmed) in File Explorer to indicate that they are hidden.

If you have Windows set to don't show hidden files, folders, or drives, hidden items will not be seen in File Explorer.

This tutorial will show you different ways on how to set or unset the hidden attribute to hide or unhide files and folders in Windows 10.


CONTENTS:





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION ONE Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Hide Files and Folders using File Explorer Ribbon

1. Open File Explorer (Win+E).

2. Click/tap on the View tab, select one or more unhidden files and/or folders you want to hide, and click/tap on the Hide selected items button in the ribbon. (see screenshot below)

Name:  Hide_files_Folders_ribbon.jpg
Views: 2369
Size:  50.3 KB

3. If you selected a folder, 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 screenshot below)

Name:  Confrim_hide_files_Folders.png
Views: 2337
Size:  19.2 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION TWO Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Unhide Files and Folders using File Explorer Ribbon

Note   Note
You will need to have Windows set to show hidden files, folders, and drives to be able to see hidden items as faded (dimmed) in File Explorer to make it easy to select them to unhide.


1. Open File Explorer (Win+E).

2. Click/tap on the View tab, select one or more hidden files and/or folders you want to unhide, and click/tap on the highlighted Hide selected items button in the ribbon. (see screenshot below)

Name:  Unhide_files_Folders_ribbon.jpg
Views: 2318
Size:  50.8 KB

3. If you selected a folder, 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 screenshot below)

Name:  Confirm_unhide_files_Folders_ribbon.png
Views: 2344
Size:  19.3 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION THREE Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Hide Files and Folders from Properties

1. Open File Explorer (Win+E).

2. Select one or more unhidden files and/or folders you want to hide, right click or press and hold on the selected items, and click/tap on Properties. (see screenshot below)

Name:  Hide-Unhide_files_Folders_properties.jpg
Views: 2366
Size:  83.0 KB

3. In the General tab, check the Hidden box in the bottom Attributes section, and click/tap on OK. (see screenshots below)

Name:  Hide_files_Folders_properties.png
Views: 2329
Size:  54.5 KB

4. If you selected a folder, 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 screenshot below)

Name:  Confrim_hide_files_Folders.png
Views: 2337
Size:  19.2 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION FOUR Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Unhide Files and Folders from Properties

1. Open File Explorer (Win+E).

2. Select one or more hidden files and/or folders you want to unhide, right click or press and hold on the selected items, and click/tap on Properties. (see screenshot below)

Name:  Hide-Unhide_files_Folders_properties.jpg
Views: 2366
Size:  83.0 KB

3. In the General tab, uncheck the Hidden box in the bottom Attributes section, and click/tap on OK. (see screenshots below)

[Name:  Unhide_files_Folders_properties.png
Views: 2345
Size:  57.9 KB

4. If you selected a folder, 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 screenshot below)

Name:  Confirm_unhide_files_Folders_ribbon.png
Views: 2344
Size:  19.3 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION FIVE Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Hide File using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the file.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib +h "full path of file with extension"

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

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


Name:  Hide_file_command.png
Views: 2321
Size:  10.3 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION SIX Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Unhide File using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the file.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib -h "full path of file with extension"

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

For example: attrib -h "C:\Users\Brink\Desktop\Folder\File1.txt"


Name:  Unhide_file_command.png
Views: 2309
Size:  10.3 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION SEVEN Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Hide Folder Only using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the folder.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib +h "full path of folder"

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

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


Name:  Hide_folder_only_command.png
Views: 2333
Size:  9.9 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION EIGHT Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Unhide Folder Only using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the folder.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib -h "full path of folder"

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

For example: attrib -h "C:\Users\Brink\Desktop\Folder"


Name:  Unhide_folder_only_command.png
Views: 2319
Size:  9.8 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION NINE Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Hide Folder, Subfolders and Files using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the folder.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib +h "full path of folder\*" /s /d

Note   Note
Substitute full path of folder in the command above with the actual full path of the unhidden folder you want to hide along with all of its contents.

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


Name:  Hide_folder_subfolders_and_files_command.png
Views: 2322
Size:  10.4 KB





Set or Unset Hidden Attribute of Files and Folders in Windows 10 OPTION TEN Set or Unset Hidden Attribute of Files and Folders in Windows 10
To Unhide Folder, Subfolders and Files using Command Prompt

1. Open a command prompt or elevated command prompt based based on the access permissions you have for the folder.

2. Type the command below into the command prompt, and press Enter. (see screenshot below)

attrib -h "full path of folder\*" /s /d

Note   Note
Substitute full path of folder in the command above with the actual full path of the hidden folder you want to unhide along with all of its contents.

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


Name:  Unhide_folder_subfolders_and_files_command.png
Views: 2315
Size:  10.3 KB


That's it,
Shawn