Windows

How to Recover Hidden Files on a Windows PC: All the Methods

8 min read

Reading Time: 8 minutesHiding files on your Windows PC is a good way to keep important and confidential information away from prying eyes, as well as being one of the methods the operating system uses to prevent users from accessing delicate system data that’s integral to the operation of the platform.

Just like any other form of data, hidden information is susceptible to various forms of data loss. In this guide, we’re going to teach you how the hiding feature works in Windows and help you recover hidden files that have been lost or compromised.

How to Show All the Files in File Explorer

Windows operating systems have an option built into its Windows File Explorer tool that allows you to toggle the visibility of hidden files on or off as you see fit. It’s actually really easy to access, as long as you know where to look. It’s worth noting, however, that this method makes ALL the hidden files on your machine visible.

Just follow the simple steps below on how to find hidden files on a computer using File Explorer:

  1. Open up an instance of Windows Explorer by clicking on the folder icon on your Windows taskbar.
    show all open file explorer
  2. Navigate to the View tab on the top-left corner of the window.
    show all file explorer view
  3. Uncheck the Hidden items checkbox.
    show all file explorer hidden
  4. Your hidden files should now be visible except for protected system files that Windows doesn’t want you messing around with. If you know what you’re doing and are dead set on accessing these files, you can click on the Options dropdown in the top-right corner of the Window and select the Change folder and search options.
    show all file explorer change folder
  5. A pop-up should appear. Head to the View tab and scroll down a bit until you see the Hide protected operating system files (Recommended) checkbox. Uncheck the box and click the Apply button to reveal all your important system files as well.
    show all file explorer change folder show

How to Unhide Specific Files or Folders

If you’d rather not reveal all of your secret files and are interested in unhiding just a select number of hidden files or folders, then there are a couple of ways you can go about this.

You can either use Windows File Explorer which is the more user-friendly and easier of the two methods, or you can utilize the Windows Command Prompt tool which requires you to be familiar with a few sets of commands.

Windows File Explorer

For this method, you’ll need to first make all of your hidden files and folders visible using the technique outlined in the previous section.

Once you’ve accomplished that, follow the steps below:

  1. Click the folder icon along your Windows taskbar to bring up the File Explorer window.
    show specific open file explorer
  2. Navigate to the file or folder that you want to unhide.
    show specific file explorer folder
  3. Right-click the file or folder and select the Properties option.
    show specific file explorer properties
  4. A pop-up window should appear. Uncheck the Hidden checkbox near the bottom of the window and click the Apply button.
    show specific file explorer hidden
  5. If you’re unhiding a folder with various hidden files housed within it, another pop-up window will appear asking if you want to unhide just the folder or the files inside it as well. Once you make your decision, click the OK button to proceed.
    show specific file explorer subfolders
  6. Your file/folder should now have the hidden attribute removed. You can now stop showing all your hidden items once more and the file or folder you edited should remain visible.

Command Prompt

The good thing about using Command Prompt to unhide your files or folders is that you won’t have to reveal all your hidden files first to edit their attributes. You can remove the hidden attribute directly from the file/folder while it’s still hidden. You’ll have to learn a few commands and what they do, but it’s worth the trouble.

Before you start using this method, you should know that the main command you’ll be utilizing is the “attrib” command which allows you to add or remove certain parameters to specific files or folders. It is used in conjunction with the following syntaxes:

  • -h to remove the hidden attribute from a file/folder
  • /d to apply the attribute action to any files and subdirectories within the directory you’re on

Here are the instructions on how to unhide files or folders using Command Prompt:

  1. Bring up the search feature on your taskbar, type in “command prompt”, then right-click the top result and select the Run as administrator option.
    show specific command prompt launch
  2. Type
    attrib -h d:\sample 

    where “D:\Sample” refers to the drive letter and name of the file/folder that you want to unhide. Take note that if you’re trying to unhide a file, you’ll need to include the file extension, such as sample.txt or sample.jpg. When you’re ready, hit the Enter key to apply the attribute change.
    show specific command prompt h

  3. If you want to remove the hidden attribute from all the files and subfolders within a specific folder, you’ll need to navigate to that folder first. First, make sure you’re on the right drive by typing out the drive letter followed by a colon and then pressing Enter. In our case, it’s d:. From there, use the cd d:\sample command to head to a specific folder, where “d:\sample” refers to the drive letter and folder name of the directory you’re trying to navigate to. Once you’ve typed out the command, hit Enter to execute.
    show specific command prompt folder
  4. Once you’re in the right folder, type out attrib -h /d and press Enter to remove the hidden attribute from all of the files and subfolders inside that directory.
    show specific command prompt remove hidden

Note: If you want to hide files/folders, you can follow the same steps mentioned above but replace the -h syntax with +h.

How to Recover Lost Files on Your PC

You could have your hidden files safely tucked away only to later find out that they’re missing or compromised due to some kind of data loss scenario. After all, they’re just like any other file or folder on your PC. Fortunately, there’s still a good chance you can recover deleted folders and lost files on your Windows machine using a top-notch data recovery program.

Disk Drill is one of the best apps in the recovery space, featuring exceptional user-interface design, high filetype and storage device compatibility, and an impressive recovery rate. It also offers an attractive free version that gives you access to all of the program’s features with a recovery limit of 500 MB and it can find a hidden file or folder.

Here’s how you can use Disk Drill in restoring hidden files that are lost:

  1. Download the Disk Drill setup file from the official Cleverfiles website.
    hidden disk drill download
  2. Run the setup file and follow the instructions until it’s properly installed.
    hidden disk drill install
  3. Launch Disk Drill and choose the storage medium that contains your missing hidden files from the list. When you’re ready, click the Search for lost data button to proceed.
    hidden disk drill choose storage
  4. Disk Drill will now begin scanning your drive. Your drive’s read speed and size dictate how long this process will take. In the meantime, you can click the Review found items button on the top-right corner to go through the files that the program has found so far.
    hidden disk drill scanning
  5. When you’re on the results screen, you can select the files/folders you want to recover by ticking the checkboxes on the left side of the file names. Once you’ve selected all the items you want to retrieve, click the Recover button at the bottom of the window.
    hidden disk drill results
  6. A pop-up will show up asking you to choose the destination where your recovered files should be saved. This has to be on a different storage medium than the one you’re retrieving files from or else you’ll encounter an error. Click OK when you’re ready to start recovering.
    hidden disk drill select destination
  7. Once the recovery process is completed, you’ll be shown a results screen where you can click the Show recovered data in Explorer button to head directly to your rescued files.
    hidden disk drill complete

FAQ: