Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How Do I View Hidden Files and Folders?

Side-stepping Windows’ attempts to protect you (or itself).

We'll look at how to display hidden files and folders in Windows Explorer.
Show Hidden Files
(Image: askleo.com)
Question: I have my old Outlook .pst file on a flash drive, but I cannot get it to my hard drive. The location of the newly created Outlook .pst file is in c:\Users\Username\AppData\Local\Microsoft\Outlook, but when I try to open that folder, there is no “AppData” folder. What am I missing?

Windows is trying to be helpful by protecting you from yourself. Or perhaps it’s trying not to confuse you with too much data. Or maybe it’s trying to protect itself from you.

Whatever. Windows is hiding that folder.

Since we know what we’re doing, we’ll tell it to stop.

Become a Patron of Ask Leo! and go ad-free!

TL;DR:

Exposing what's hidden

Windows hides files like “AppData” to keep them safe and avoid confusion. To view these, go to Windows File Explorer’s settings to show hidden files and uncheck “hide protected system files.” Or, in the Command Prompt, use “dir /A:H” to reveal hidden files. Once visible, you can access and manage the files.

Hidden files and folders

Windows1 has an attribute called “hidden” for files and/or folders. When a file is set to be hidden, many programs do not display its existence. There’s also a “system” attribute with similar effect.

In Windows’ defense, there are files and folders you shouldn’t play with. It makes sense that Windows might hide them by default.

Sometimes, though, we need to be able to see them.

Fortunately, for Windows File Explorer at least, there’s a simple fix in settings. And if Windows File Explorer isn’t your thing, well, there’s always the Windows Command Prompt.

Viewing hidden files and folders in Windows File Explorer

Here’s a view of “C:\Users\askle” in Windows File Explorer on my example machine.

c:\Users\askle
The Users folder on my C: drive. Click for larger image. (Screenshot: askleo.com)

You’ll note there’s no AppData folder.

In Windows 10, click the View menu, the Options button, and then the Change folder and search options item.

Windows 10 View Options

In Windows 11, click the ellipsis and then Options.2

Windows 11 elipsis to options.
Windows 11 path to the same setting. (Screenshot: askleo.com)

In the resulting dialog box, click the View tab.

Windows File Explorer options.
Windows File Explorer options. (Screenshot: askleo.com)

Make two changes:

  1. Change the setting to “Show hidden files, folders, and drives”.
  2. UNcheck “Hide protected operating system files”. Ignore the resulting warning. Technically, this isn’t needed for our AppData question, but if we want to see more, I prefer to see everything.

Click OK.

If we go back to Windows File Explorer, lo and behold, there’s the missing folder.

Windows File Explorer with hidden files visible.
Windows File Explorer with hidden files visible. Click for larger image. (Screenshot: askleo.com)

If you look closely, you can see that the folder icon for the AppData folder is slightly lighter than the others. That indicates that the folder is marked as hidden.

For the record, I always have “Show hidden files, folders, and drives” set to be visible. I don’t feel I need Windows’ help to protect me from seeing files and folders on my machine.

The bottom line: now that you can see the AppData folder, you’ll be able to view everything you’ll find within.

This setting is permanent unless you go back in and change it back.

Viewing hidden files and folders in the Command Prompt

In Windows Command Prompt, use the “Dir” command to see the files in the current folder (also referred to as a directory).

Here are the results of a “DIR” while in C:\Users\askle:

A simple DIR in c:\users\askle
Results of a simple DIR command on c:\users\askle. (Screenshot: askleo.com)

Once again, no AppData folder is visible.

There is no simple setting to always make the Command Prompt show hidden files. Instead, we add an option to the DIR command to tell it to display only the hidden files: dir /A:H.

DIR /A:H in C:\Users\askle.
DIR /A:H in C:\Users\askle. (Screenshot: askleo.com)

Now the AppData folder displays at the top of the list.

By default, the Command Prompt will display all hidden files, including system files and so-called “protected operating system files” – hence, the “<JUNCTION>” items and “NTUSER.DAT”, the file containing the user-specific registry.

The result is the same as before: now that you can see the AppData folder, if you’re command-line savvy, you can use command-line tools to do what you need to do.

Do this

AppData, in particular, seems to be needed by users frequently, so I’m surprised it remains hidden. That being said, it no longer matters since you can now un-hide things at will.

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Footnotes & References

1: In Windows’ defense, the concept was inherited from DOS and probably pre-dates even that operating system.

2: Windows 11 also includes the option to view hidden files directly off of the View -> Show menu. I’m using the options here to expose system files as well.

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.