FG

Change Default Sorting Order of 'dir' Command in Windows

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

Problem

By default, Windows' command sorts files and directories alphabetically without grouping. The result is files and directories appear interleaved with one another. Sample output: Adding the switch makes the output much more organized: Question: Is it possible to make use the switch by default?

Error Output

F:\Dev Kits>dir
 Volume in drive F is Buffer II
 Volume Serial Number is E039-C389

 Directory of F:\Dev Kits

07/26/2011  05:02 AM    <DIR>         …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Change Default Sorting Order of 'dir' Command in Windows

Low Risk

The environment variable can be used to specify defaults for .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment