How To Quickly Search For A File From Command Prompt In Windows

Written by admin. Posted in 7, Vista, Windows, XP

Tagged: , , , , , , , ,

Published on September 07, 2011 with 1 Comment">1 Comment

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare

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.

 

FacebookTwitterStumbleUponPinterestTumblrEmailGoogle+PrintShare
  • stentor tropicalia

    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.