dir command windows 10 code example
Example 1: dos dir filename only
# Windows - cmd specific
# syntax
dir /s /b <search-string>
# example (to find any files/folders with names containing "hoto", like Photo)
dir /s /b *hoto*
Example 2: msdos dir for subdirectories
# Windows - cmd specific
# syntax
dir /s <search-string>
# example (to find any files/folders with names containing "hoto", like Photo)
dir /s *hoto*