Where
Updated: January 21, 2005
Syntax
Parameters
Remarks
- 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
where "program files"
To find all files named Test in drive C: of the current computer and its subdirectories, type:
where /r c:\ test
To find all files named Notepad in drive C: of the remote computer Computer1 and its subdirectories, and report the executable type for executable files, type:
where /r \\computer1\c /e notepad.*
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |