Windows File Management with the FIND and FINDSTR Commands

File management can be tricky business, especially if you want to find files that contain certain words or phrases. The FIND and FINDSTR utilities help here, allowing you to search for text strings in files or determine which files contain those words. For example, if you wanted to display all of the lines in the file c:\test.txt that included the string “Dan” along with the line number that this string appears on, type FIND /N “Dan” c:\test.txt.

The FIND and FINDSTR commands include a number of different switches, and provides a variety of search options, including the use of wildcard characters.

Author: Dan DiNicolo

Dan DiNicolo is a freelance author, consultant, trainer, and the managing editor of He is the author of the CCNA Study Guide found on this site, as well as many books including the PC Magazine titles Windows XP Security Solutions and Windows Vista Security Solutions. Click here to contact Dan.