WHERE
Locate and display files in a directory tree.
The WHERE command is roughly equivalent to the UNIX &qt;&qt;which&qt;&qt; command.
For early versions of windows that don&qt;&qt;t have this command you can use this WHICH batch file.
By default, the search is done in the current directory and in the PATH.
Syntax
WHERE [/r Dir] [/q] [/f] [/t] Pattern …
key
/r A recursive search, starting with the specified Dir directory.
/q Don&qt;&qt;t display the files but return either an exit code of 0 for success
or 1 for failure.
/f Display the output file name in quotation marks.
/t Display the size, time stamp, and date stamp of the file.
/e Report the executable type.
pattern The name of a folder, file, or set of files to be found.
you can use wildcard characters ( ? * ) and UNC paths.Examples
To find all files named &qt;&qt;Zappa&qt;&qt; in drive C: (including subdirectories)
WHERE /r c: Zappa
To find all files named &qt;&qt;Zappa&qt;&qt; in drive C: of the remote computer &qt;&qt;MyPC&qt;&qt; and its subdirectories, and report the executable type for executable files
WHERE /r \MyPCc /e Zappa.*