list directory cmd code example
Example 1: cmd files in directory
Enter “dir” (without quotes) to list the files and folders contained in the folder.
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*