Skip navigation

JSI Tip 3573. The Where.exe Windows 2000 Resource Kit tool.

The Where.exe tool can run recursive searches for files and/or folders on a local or network drive. It can accept environment variable instead of a path:

where \[/r dir\] \[/q\] \[/t\] \[/e\] \[/Q\] pattern ...


where \[/q\] \[/t\] \[/e\] \[/Q\] $envvar: pattern ...

/r dir   - Recursive search starting at folder dir.

/q - Quiet mode, set exit code.

/t - Display the size and date/time of the file.

/e - Display the executable type, if the file is executable.

/Q - Double-quote the path.

pattern - The search argument. Wildcard characters are allowed.

$envvar - Use in place of /r dir on the local computer: Where $windir:*.log

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.