Change Default Sorting Order of 'dir' Command in Windows
The %DIRCMD%
environment variable can be used to specify defaults for dir
.
Try opening Control Panel > System > Advanced tab > Environment Variables.
Create the system variable DIRCMD
and assign the value /a /c /p /x /o:gen