

Multiple filespecs are allowed, e.g., " *.txt *.exe".ĭisplays only files with the specified file attributes. Specifies the drive, directory, or files to list. Windows 11, 10, 8, 7, Vista, XP, and 2000 syntax DIR Attributes]]

With the /S option, it recurses subdirectories and lists their contents as well.

The dir command displays a list of files and subdirectories in a directory. Dir is an internal command available in the command line of all Microsoft operating systems.
