This is actually one of the most useful
command line switches for finding just about any information. Let??™s say you have a series of
Word documents that you??™re using as help file and that you??™re looking for the Accessing Widgets
header. You could type FindStr /M /C:???Accessing Widgets??? *.DOC and press Enter to
locate the required header. FindStr will print out a list of the files that contain the text you want
to locate. However, let??™s say that you want to locate any mentions of this topic in the text instead
of seeing just the headers. You could then modify the command line and type FindStr /M /I
/C:???Accessing Widgets??? *.DOC and press Enter to perform a case insensitive search.
/G:File Reads the list of search strings to look for from a file. You can also supply a value of
???/??? to type the search strings at the command line.
/D:Directories Defines a list of directories to search. You must separate each directory entry
with a semicolon.
/A:ColorAttribute Tells FindStr to display the filenames using colors. You must provide
two hexadecimal (base 16) values from 0 through F (these values are the same as 0 through 15
decimal).
Pages:
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968