FG

List only files of a particular extension with the DIR command

Fresh3 days ago
Mar 15, 2026117817 views
Confidence Score0%
0%

Problem

On Windows, we can see directory content using the 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 files, what command I should run?

Error Output

DIR

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: List only files of a particular extension with the DIR command

Low Risk

Dir supports wildcards, so:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment