Home
> Commands N-Z
> Commands W
WHERE
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Locates and displays all of the files that match the given
parameter. By default, the search is done in the current
directory and in the
%PATH% environment
variable.
Syntax
WHERE
/?
WHERE
[/f]
[/q]
[/r directory]
[/t]
pattern ...
Parameters
- pattern ...
(NT2003)
- Specifies the name of a directory, file,
or set of files to be found.
You can use wildcard (? *) characters.
Switches
- /?
(NT2003)
- Displays help.
- /f
(NT2003)
- Displays the output file name in quotation marks.
- /q
(NT2003)
- Returns either an exit code without displaying the
files:
- /r directory
(NT2003)
- Indicates a recursive search,
starting with the specified directory.
- /t
(NT2003)
- Displays the size, time stamp,
and date stamp of the file.
Related
none.
Notes
WHERE can run recursive searches, display file
information such as date or size and can accept
environment variables in place of paths on local
computers.
Examples
none.
Errorlevels
- 0 file found
- 1 file not found
Availability
- External
-
- DOS
-
none
- Windows
-
none
- Windows NT
-
NT2003
Last Updated: 2003/07/28
Direct corrections or suggestions to:
Rick Lively