How To Quickly Search For A File From Command Prompt 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.


  1. stentor tropicalia says:

    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.