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!
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.
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.
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”.
Type the name, or partial name, of the file into this search box.
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.
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.
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:
(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”.
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,
Footnotes & References
1: This setting was introduced in the Windows 10 1903 update.