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

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

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

    How to Set or Unset Hidden Attribute of Files and Folders in Windows 10
    Published by Category: General Tips
    07 Nov 2018
    Designer Media Ltd


    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: 7319
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: 7267
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: 7253
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: 7223
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: 7277
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: 7208
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: 7267
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: 7277
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: 7331
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: 7223
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: 7192
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 -s -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 -s -h "C:\Users\Brink\Desktop\Folder\File1.txt"


    Name:  Unhide_file_command.png
Views: 7174
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: 7252
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 -s -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 -s -h "C:\Users\Brink\Desktop\Folder"


    Name:  Unhide_folder_only_command.png
Views: 7205
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: 7187
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 -s -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 -s -h "C:\Users\Brink\Desktop\Folder\*" /s /d


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


    That's it,
    Shawn


  1.    1 Week Ago #1

    A correction for option 6 command syntax


    On option 6, the only switch you show is the "-h" switch.

    When I used that cmd as shown, I was getting error: "Not resetting system file..."
    (Same thing using administrator mode.)

    Finally, I figured out that I also needed to add the "-s" switch. This seems to be needed
    because my file ALSO had an "S" attribute, in addition to the "H" attribute.

    (I also noticed in cmd-line options further down, you DO add an additional switch out at the end
    of the cmd, of "/S".)

    So, maybe you should say to do that on option 6, too?

    Or else add some clarifying remarks up front on option 6, explaining that files with
    'hidden' attribute also will likely also have 'system' attribute, and that an extra switch
    argument is needed in that case.

    Cheers...
    i
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 33,798
    64-bit Windows 10 Pro build 18282
    Thread Starter
       1 Week Ago #2

    Hello @SarasotaSlim,

    Thank you for letting me know. I added the "-s" switch to the unhide commands in the tutorial so they will include system files.
      My ComputersSystem Spec


 

Tutorial Categories

Set or Unset Hidden Attribute of Files and Folders in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Hi, I read the tutorial about Libraries, which doesn't cover my question. I do not use the Documents, Music, Pictures, or Videos folders and I 'd like to get them off the navigation pane, is there a way to do that?
hi at all, i wanna know, if there's a possibility to hide "desktop.ini" on desktop, without loosing the visibility off all the folders and data in explorer ? many thanks so long Perlchamp
How to Hide or Unhide Your Apps in Store My Library List in Windows 10 The Microsoft Store app in Windows 10 offers various apps, games, music, movies & TV, and books that users can browse through, purchase, or get for free to download and...
I have a website that is my clients its maintained with FP 2003 I use win10 x 64bit site is very basic and everything works well between FP2003 and my laptop. I have 14 of the clients pages in a "PRVATE" folder this is secured by a username and...
Can't hide folders!!! in General Support
Solved it!

Tags for this Thread

Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 15:52.
Find Us