The DIR command has many switches (type DIR /?):

dir \[drive:\]\[path\]\[filename\] \[; ...\] \[/p\] \[/w\] \[/d\] \[/a<a href="/article/tips/jsi-tip-0651-using-the-dircmd-environment-variable--71976">\]attributes</a>\[/o<a href="/article/tips/jsi-tip-0651-using-the-dircmd-environment-variable--71976">\]sortorder</a> \[/t<a href="/article/tips/jsi-tip-0651-using-the-dircmd-environment-variable--71976">\]timefield</a> \[/s\] \[/b\] \[/l\] \[/n\] \[/x\]</b>
If you regulary type switches and have a favorite set that you use, you can cause the DIR command to remember them by setting the DIRCMD environment variable:

set DIRCMD=/b /o:-n

causes DIR to always use the /b and /o:-n switches. You can override these defaults for a given invocation of DIR:

DIR \[drive:\]\[path\] /-b

will perform the above dir without the /b switch but will still use the /o:-n switch.

You should set the DIRCMD environment variable in Control Panel / System / Environment.