DIR can just be simple list of files and sub-directories, but you can so much more. We can use the information about Wildcards and Attributes to make DIR a kind of search function.


Links:

https://www.ahuka.com/dos-lessons-for-self-study-purposes/dos-lesson-12-expert-dir-use/