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 To Find a File on Your Computer

//
I’m looking for [… some filename …] on my machine. I know it’s here, but I can’t track it down. What am I missing? How to I find the file?

As you might guess, that’s a composite question. It reflects many different people asking roughly the same question in different ways.

How do I find a file I know is on my computer?

There are a couple of ways, and there are a couple of “gotcha’s” as well, so let’s look at how to track down that file you’re looking for.

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

Windows Search

The traditional way to locate a file in Windows is the Search item on the Start menu. Windows 10 makes this simple.

Click on the Start button and just start typing the name of the file, or some portion thereof.

Windows Search - Searching for a file
Searching for a file with Windows Search. (Click for larger image.)

What you type will be displayed in a search box (which may or may not already have been present on the taskbar), and results will begin to appear. Once you stop typing and Windows “catches up”, you’ll see a list of results, as shown above. If you don’t see what you’re looking for right away, type more of the name.

In my example above, the “Best match” is the file I was looking for. Information about the file is displayed at the right, including its location on the hard disk, along with links to open the file or the folder in which it’s contained.

Searching your entire computer

By default, Windows Search searches only a predefined set of locations. Those include your desktop and the Libraries (such as Documents, Music, and Pictures) shown in the left-hand pane of Windows File Explorer.

You can instruct Windows Search to search your entire computer by changing a setting.1 Run the Settings app, and search for “search”. Click on Windows Search settings when it appears.

Searching Windows settings
Searching Windows settings.

Click on Enhanced to add the rest of your computer’s hard disk, with the exception of excluded folders, to the search.

You can examine the list of excluded folders and remove any you want included in search by clicking on it and then on Remove excluded folder.

Windows File Explorer Search

Run Windows File Explorer, click on This PC, and the search box near the upper right will indicate “Search This PC”.

Search box in Windows File Explorer
Search box in Windows File Explorer.

Type the name, or partial name, of the file into this search box.

Entering a search term in Windows File Explorer
Entering a search term in Windows File Explorer.

Quickly available results may be displayed — if any of those are what you need, just click on it to open the document listed. If not, click the right-pointing arrow that appeared when you started typing to perform the search.

The search may take some time.

Search results in Windows File Explorer
Search results in Windows File Explorer. (Click for larger image.)

You can open a document directly from the search results by double-clicking on it; open the folder containing the file, by right-clicking on it and clicking on Open file location; or copy or move the file as you like.

Windows File Explorer also includes several additional ways of tailoring your search. Click on Search Tools, which appears at the top of the window when you type into the search box, for a selection of additional ways to customize what will be found.

Windows File Explorer Search Tools
Windows File Explorer search tools.

Searching in Command Prompt

Since I’m an old-school command-line kinda guy, I often turn to the Windows Command Prompt.

To fire up a Windows Command Prompt, right-click on the Start button and click on either Command Prompt or Command Prompt (Admin) to search administrator-only locations. Enter:

cd \

(followed by the Enter key) to make the current directory the root of the drive. Now enter:

dir /s /a filename

Where “filename” is the full name of the file you’re looking for. “/s” means “check all subfolders”, and “a” means “show all files, including hidden and system files”.

The asterisk character (“*”) is a useful addition when you don’t know the full, exact, filename.

For example, searching for “internetsafety*” begins a search for any file whose name begins with “internetsafety”.

Performing a search in the Windows Command Prompt
Performing a search in the Windows Command Prompt.

The asterisk, called a “wild card”, can appear elsewhere, including at the front of what you’re searching for. For example, a search for “*.pdf” would return all PDF files on your computer.

If you found this article helpful you'll love Confident Computing! My weekly email newsletter is full of articles that help you solve problems, stay safe, and increase your confidence with technology.

Subscribe now, and I'll see you there soon,

Leo

Podcast audio

Play

Video Narration

Footnotes & References

1: This setting was introduced in the Windows 10 1903 update.

Posted: December 26, 2019 in: Windows User Interface
This is a major update to an article originally posted April 30, 2007
Shortlink: https://askleo.com/3009
Tagged: , ,
« Previous post:
Next post: »

New Here?

Let me suggest my collection of best and most important articles to get you started.

Of course I strongly recommend you search the site -- there's a ton of information just waiting for you.

Finally, if you just can't find what you're looking for, ask me!

Confident Computing

Confident Computing is the weekly newsletter from Ask Leo!. Each week I give you tools, tips, tricks, answers, and solutions to help you navigate today’s complex world of technology and do so in a way that protects your privacy, your time, and your money, and even help you better connect with the people around you.

The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition

Subscribe for FREE today and claim your copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. Culled from the articles published on Ask Leo! this FREE downloadable PDF will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.



My Privacy Pledge

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and after "retiring" in 2001 I started Ask Leo! in 2003 as a place to help you find answers and become more confident using this amazing technology at our fingertips. More about Leo.

21 comments on “How To Find a File on Your Computer”

  1. With Vista the Search world turns all upside down. The Search engine runs in the background all of the time as a low-level processes. It searches not only file names, but inside of files and e-mail too. For example, I recently wanted to find a PDF version of my wife’s resume. I tapped the Windows key once, then typed “resume”. Vista showed me all of the files in the machine that included “resume” in their file name, inside a document, or even in my Outlook e-mail. One whack at the Enter key launched to complete results in a new windows. Pretty nifty… can I say, “nifty?” Is that out of vogue? I suppose it’s better than, “far out!”

    Reply
  2. I’m a 75 year old NEW user. My buddy, who’s much more experienced at this stuff ran a couple of “System Restores” after I managed to screw things up. Now every time I download something from M/S of Hp,and they have to shut down and restart, I get an error message that this thing can’t locate 3 (or 4) DLL’s. It seems to have renamed them amd I have no idea what the hell a Dll is, or how to locate them. I was able to print where they are and what their new names are. I just click OK, and go from there. I also get another Error message telling me that Vista some damn thing or another can’t be located. I’m not running Vista. I have Win XP Svc. Pack 2. I’ve heard too many horror stories about Vista that has been loaded on a computer that’s been running XP. This thing was “Vista Ready” when I bought it back in Nov. ’06. Some people tell me that if Vista is alreaqdy installed on a new computer, it works fine. Any help you can give me with those DLL’s will be greatly appredciated. I’ll spring for a case of your favorite breakfast food. (How the hell does Pay Pal work? Is it reliable, secure etc?) I read the article and it sounds like this may be the answer to my problem, but I’d hate like to hell to completely destroy my OS. My “buddy” was suposed to show me how to make a set of backup discs, but hasn’t had the time. I’ve been trying to get a set from HP, but so far all I get is the runaround and no positive answers. Any help will be GREATLY appreciated. Thank you. Your humble petitioner, Al. )Don’t let the techie talk confuse you. I know Jack Shit, bit I’ve got a halfway decent memeory.)

    Reply
  3. Sylvia – Yes, there is although it’s kind of hidden. When you click on the start button look right above your pointer. There is a search box right there. (You’ll see a blinking cursor and “Start Search” in there.)

    Reply
  4. when I try to send an email I get this error message
    Quit outlook and use the inbox repair tool kit?? I cannot find it anywhere? I found my outlook pst but it will not open it tries to use the web to locate a program to open the file? so confused?

    Reply
  5. My issue is that my Windows Admin profile folder is corrupted and cannot be accessed. I want to find my emails and remove them from this hard-drive so I can put them in the new computer. Once I FIND the file, how do I copy it? Is there a way to put that file into the Shared folder so I can access it from another account/profile. Or copy to a flash drive?

    I actually learned how to do this YEARS ago, but I’ve forgotten most of it.

    Thanks for being AWESOME and creating this site for us!

    Just use Windows Explorer to drag-n-drop it to a flash drive – that would be simplest. Can’t say where the files would be though since you haven’t indicated what email program you use.

    Leo
    14-Sep-2011

    Reply
  6. Leo,
    I’m using Outlook 2003 and any time I try to access the files under that profile, I’m prompted to enter the password of the admin account, but since that folder has something wrong with it, it isn’t even accepting the password.

    Is there a backdoor to this file that I can sneak into?

    Reply
  7. “By default, Windows Search searches only a predefined set of locations. Those include your desktop and the Libraries (such as Documents, Music, and Pictures) shown in the left-hand pane of Windows File Explorer.”

    It also searches programs which is how I often run programs. For example, I’ll type “word” without the quotes and MS Word will come up as one of the search results. Clicking on that or scrolling down to it and pressing “Enter” will run the program. If the desired program is at the top of the list, no need to scroll or click; just press “Enter” and it will run.

    Reply
    • Agreed! Loading drives takes some time but the search takes less then a second. Using this app for years already. No need for asterix or whatever. Just type any string. Very userfriendly

      Reply
  8. Leo – I’m still on Win 7. I currently have words within my pdf’s indexed. When I get to Win 10 in a few weeks, will “search” need to use an index file (for words within a pdf) just like I do in Win 7?

    Reply
    • I’m not really sure what specifically “words within my pdf’s indexed.” means. If it’s Windows search that finds them now, it should find them in Windows 10 as well. If there’s something specific you’re doing for PDFs yourself, you may need to replicate that in Windows 10, but without knowing exactly what you mean I’m just guessing.

      Reply
  9. Windows Search function used to actually work and be reliable in Windows XP, but it broke in Windows 7, and on. You never know for sure what or where Windows searches. Results mix up file contents, filenames, browser links and anything else Windows decided to include. Windows may decide it will only search folder associated with your used name rather than on the entire machine. It may decide not to search OS folders. Yes, maybe you can go to Settings and set some parameters, but you can’t be sure that those settings will keep from one reboot or update to the next. Example: went to Win10 and typed in “notepad” in the search bar. Results came back with one item, that being the Notepad.exe. Then I used one of my search applications and it came back with 51 result items, not including any file contents. I used Agent Ransack for a comprehensive search. Everything Search is also good.

    Reply
  10. I run fully updated Windows 10 on the 6 computers in my household. Some time ago, I was dismayed that the Search function was not turning up files I knew existed. Eventually, I discovered that I needed to rebuild the index. Happy once again!

    Reply
  11. I’d like to know how one “saves” a search, and how one makes use of it once it’s been saved? (Using 64-bit Win7 Home Premium.)

    Reply

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.