FG
💻 Software

Excluding files of particular extension using DIR command on windows command line

Fresh5 days ago
Mar 15, 202683327 views
Confidence Score0%
0%

Problem

if i want to see e.g. files of a particular extension only using dir listing, i can do that using the command: And it shows all files with extension. Now i want to know is there any command with wich i can exclude certain extensions? For example, i don't want to see any file with extension , how ca…

Error Output

DIR *.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Excluding files of particular extension using DIR command on windows command line

Low Risk

DIR wont allow what you are trying to do. However DIR along with FINDSTR can solve this. e.g. The following ignores all .txt files in the DIR listing.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment