January 30, 2025
Command Prompt Search in Windows

Here’s how to quickly search for a file from command prompt in Windows:

1. Issue the following command at the command prompt –

dir <drive letter>\ /s /b | find “<file name to be searched>”

In our case, we wanted to search for a file named ‘mdi.chm’ in C: drive, hence we issued the following command –

dir C:\ /s /b | find “mdi.chm”

Command Prompt Search in Windows

As you can see from the screenshot, we quickly located the file we wanted. Note that the above search was non-indexed.

 

By admin

Related Post

One thought on “How To Quickly Search For A File From Command Prompt In Windows”
  1. If Microsoft were intelligent, there would be a command prompt version of indexed search. Then one could dump the output to txt files. But it takes Microsoft ages to arrive at the obvious.

Comments are closed.