Skip navigation

How can I change the default Dir output format?

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

  1. Start the system control panel applet (Start - Settings - Control Panel - System)
  2. Select the Environment tab
  3. Create the Variable "dircmd" and set the value to your qualifiers, e.g. "/p /l /tc /oen" and click Set
  4. Click Applet then Click OK

Click here to view image

Any new command session will now use the new dir output format.


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish