How can I change the default Dir output format?
January 8, 2000
A. The DIR command has many switches and you can configure your own default behavior for the command instead of the normal format. For example you may want to view the output one page at a time (/p), in lowercase (/l), with files time as their creation rather that last write (/tc) and sorted by extension then name (/oen). Normally you would type
dir /p /l /tc /oen
however this is slightly tedious so to set this as your default perform the following
Start the system control panel applet (Start - Settings - Control Panel - System)
Select the Environment tab
Create the Variable "dircmd" and set the value to your qualifiers, e.g. "/p /l /tc /oen" and click Set
Click Applet then Click OK
Click here to view image
Any new command session will now use the new dir output format.
About the Author
You May Also Like