CMD

Where

1
<Command Options>
2
/R: Recursively searches and displays the files that match the given pattern starting from the specified directory.
3
4
<Examples of Usage>
5
where /r . *.pdf
6
# search files recursively
Copied!

Dir

1
<Command Options>
2
/B: Uses bare format (no heading information or summary).
3
/S: Displays files in specified directory and all subdirectories.
4
5
<Examples of Usage>
6
dir /b /s "directoryname"
7
# search directories recursively
Copied!

Findstr

1
<Examples of Usage>
2
findstr /s /d:c:\windows /m mp3 *
3
# Look in C:\windows and its subdirectories for all files that contain the string "mp3"
4
Copied!
Last modified 1yr ago
Copy link