|
FIND
This is a very usefull tool for searching files for
strings(text). If you have lost a file or renamed a file and
cannot remember what the name was, you can use FIND to
locate it.
Syntax
find [/v] [/c] [/n] [/i] "string" [[Drive:][Path]FileName[...]]
Top of page
Parameters
/v : Displays all lines that do not contain the specified
string.
/c : Counts the lines that contain the specified string and
displays the total.
/n : Precedes each line with the file's line number.
/i : Specifies that the search is not case-sensitive.
" string " : Required. Specifies the group of characters
that you want to search for.
[ Drive : ][ Path ] FileName : Specifies the location and
name of the file in which
to search for the specified
string.
For example if your name is David and the missing file has
your name in it, enter FIND "David" at the prompt. DOS will
search the current directory for any file containing the
string "David."
Batch File Commands
|