The easiest way to use FindStr is to define a simple string and make the call. FindStr looks in all
of the files in the current folder for any words in the string. For example, typing FindStr ???Hello
World??? *.* at the command prompt and pressing Enter causes the FindStr utility to look for
the individual words Hello and World in all files in the current folder. The FindStr utility uses the
following syntax:
FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O]
[/P] [/F:file] [/C:string] [/G:file] [/D:dir list] [/A:color
attributes] [/OFF[LINE]] strings [[drive:][path]filename[...]]
The following list describes each of the command line arguments.
/B Matches the search string against the beginning of the line.
NOTE Some of the FindStr features are line related. A line of text or other data ends when FindStr
encounters a special carriage return (character number 13) and line feed (character number 10)
combination. When looking at a text file, you see one line of text separated from another by white
space. The carriage return and line feed combination causes the white space. In DLLs and other
unreadable files, there??™s no need for lines of text, so the carriage return and line feed combination
appear irregularly, if at all.
Pages:
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965