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 ...
OR
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
0 comments
Hide comments