Windows – List only files of a particular extension with the DIR command

command linedirwindows 7

On Windows, we can see directory content using the DIR command.

I want to know, how can one see the list of only those files which have particular extension, e.g I want to see list of all .txt files, what command I should run?

Best Answer

Dir supports wildcards, so:

dir *.txt
Related Question