Set DIR command default parameters

Since I don’t like the the default parameters of the DIR command in the command line mode, I wandered if there is a way to set it permanently, to avoid typing each time “DIR /O:G/P” for example. And of course there is a way, following step-by-step for XP, but should be kind of similar for other windows versions too:

  1. Win + Print opens System Properties dialog
  2. Klick on the Advanced tab
  3. Environment variables
  4. Add a new variable with the name DIRCMD and the value(s) you want to be displayed in System variables field.
That’s it. Enjoy.