Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
Dir supports wildcards, so:
dir /S *.txt
will show files with ".txt" suffix in specified directory and all sub-directories.
You can list only the filenames without the extra information added with the command
dir /b *.[extension].
dir /b *.[extension]
A more comprehensive list can be found here .
6 years, 9 months ago
4 months ago