How to search and open files with Command Prompt in Windows 10 PC

This tutorial is about How to search and open files with Command Prompt in Windows 10 PC. Recently I updated this tutorial and will try my best so that you understand this guide. I hope you guys like this blog, How to search and open files with Command Prompt in Windows 10 PC. If your answer is yes after reading the article, please share this article with your friends and family to support us.

Check How to search and open files with Command Prompt in Windows 10 PC

We have all been in situations where we save files on the computer but completely forget the location of the file. Surprisingly, we often forget the file name and try our best to search for the same file without errors. Imagine how many times your seconds turn into minutes and then minutes into hours to find files. From using the Ctrl + F function in My Computer to searching for separate drives, we’ve tried every possible method, but no luck. Have you considered using the Command Prompt feature to find and open a file?

Do you know that we can easily find and open a file in cmd on Windows 10 PC? From opening folders in Command Prompt to launching files, anything is possible. Many of us know that the command prompt offers many functions that are not possible with the traditional use of a PC. However, Windows Explorer on your system is a powerful tool to find files on the system. However, Command Prompt can be very helpful when you have forgotten the full file name or file location. This is when you switch to the command prompt to easily find and open folders in cmd:

How to Find and Open Files with Command Prompt on Windows 10 PC

First, open Command Prompt on your PC by typing “cmd” in the Windows search bar, and then select “Command Prompt” from the search results. With Command Prompt open, you’re ready to find and open your file.

Find files using the command prompt

  • Maybe you already know the file path to the item you want to open, maybe you don’t. Otherwise, you don’t need to search through File Explorer just to return to Command Prompt later. You can use this command instead:
    • dir “search term*” /s
  • Just replace “search term” with, of course, the actual search term. So if we wanted to locate our file called “Example File” we would use this command:
    • dir “example file*” /s
  • Command Prompt will now search for and find all instances of the search term you entered. (1) it will show you the file path and (2) it will give you the file name and extension.
  • Now that we’ve found our file, let’s open it.

Open files using command prompt

  • To open the file, you must navigate to the directory at the command prompt that contains the file you want to open. In this example, we’ve created an “Example” folder in our “Documents” folder, so we’ll head over there.
  • At the command prompt, use the Change Directories command ( cd ) to browse your folders. Since we are currently at the top level of the computer’s file system, we must first go to “Documents” and then “Example”. So, we will use this command:
  • Once you have entered your command, press the Enter key. You will now be in that folder.
  • Now it’s time to open the file inside that folder. Our file is called “Example File”.
  • To open the file, enter the file name and extension in quotes. In this case:
  • The file will now open.
  • To make things a bit faster, you can navigate to the correct folder and open the file with a single command. Assuming we’re back at the top level, we’d run this command:
    • “DocumentsSamplesample file.docx”
  • The only difference is that it doesn’t add the cd command and the full path is enclosed in quotes.

Final remarks: How to search and open files with Command Prompt in Windows 10 PC

I hope you understand this article, How to search and open files with Command Prompt in Windows 10 PC. If your answer is no, you can ask anything via the contact forum section related to this article. And if your answer is yes, please share this article with your friends and family to give us your support.

James Hogan
James Hogan
James Hogan is a notable content writer recognized for his contributions to Bollyinside, where he excels in crafting informative comparison-based articles on topics like laptops, phones, and software. When he's not writing, James enjoys immersing himself in football matches and exploring the digital realm. His curiosity about the ever-evolving tech landscape drives his continuous quest for knowledge, ensuring his content remains fresh and relevant.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Articles

Hubspot Service Hub review 2024: a comprehensive platform

When it comes to customer support operations, HubSpot Service Hub is an all-encompassing customer service platform that is meant to...
Read more
When players on Windows 11 or 10 try to log in to Steam, they may get the error code E87....
Users of Windows 11 or 10 may find it frustrating to deal with the error number 147-0 in Microsoft Office....
The Microsoft Store is an important part of the Windows operating system because it gives users a single place to...
It can be hard to find the right balance between usefulness, durability, and cost when it comes to kitchen storage....
Both AirDroid and Vysor are well-known tools that help Android users control their devices and mirror them. One of the...