Windows where

WHERE [/ R dir] [/ Q] [/ F] [/ T] pattern ...

Description:
    show file locations that match the search pattern. By default, the search is in the directory and the PATH current
    execution environment variables specified path.

Parameter List:
    / R beginning from the specified directory, recursively search and display files that match the specified pattern.

    / Q only returns an exit code does not appear to match the file list. (Quiet mode)

             matching files. (Quiet mode)

    / F. And show all files with matching double quotes.

    / T to display all files matching the file.

    Search mode to match the specified pattern file. Wildcards * and? Can be used in mode.
             You can also specify "$ env: pattern" and "path: pattern" format; where
             "env" environment variable, the search is performed in a designated "env" variable path.
             Should not be used in conjunction with / R These formats. This search can also be used PATHEXT variable
             manner the amount of this additional extension mode is completed.

     /? Displays this help message.

  Note: If the search is successful, this tool returns an error level 0; if unsuccessful, returns 1; if the loss of
        an error or failure occurs, returns 2.

Example:
    the WHERE /?
    WHERE myfilename1 myfile????.*
    WHERE $windir:*.*
    WHERE /R c:\windows *.exe *.dll *.bat
    WHERE /Q ??.???
    WHERE "c:\windows;c:\windows\system32:*.dll"
    WHERE /F /T *.dll

Guess you like

Origin www.cnblogs.com/YZFHKMS-X/p/11784402.html