cmd find code example

Example 1: find in windows

# For finding file use dir followed by string matching file name or regex
# pattern and add "/s" for searching recursively in subfolders:
dir /s "regex_or_file_name"
# For finding file contained in a searched directory use "/b":
dir /b "directory_name"
# Use respectively '/a-d' or '/ad' for finding only files or only folders.

Example 2: windows find case insensitive

Find strings with case-insensitive search using -i flag as follows:
findstr -i "Case_insensitive_substring"
For example:
dir | findstr -i "Case_insensitive_file_name"

Example 3: cmder find file

Locate find.exe file:
where find.exe
Then rename it to a different name as fnd.exe and finally use this new commmand 
name to search files or directories in current and subdirs as follows:
fnd . -name "file_name"