where

Windows CMD · Files · available in the simulator

What it does

Locates files matching a pattern in PATH or a specified directory.

Syntax

where [/r directorio] [/q] [/f] [/t] patrón

Options and parameters

  • /r RUTA

    Recursively searches starting at RUTA.

  • /q

    Quiet mode (exit code only).

  • /R

    Recursively searches starting at the specified directory.

    where /r C:\Windows *.dll
  • /Q

    Suppresses output; returns exit code only.

  • /F

    Displays matching file names in quotation marks.

  • /T

    Displays the file size and last modified date for each matching file.

Usage examples

  • where notepad
  • where /r C:\ *.log
  • where /r C:\Windows *.dll
Practise where

Related commands