Here's our Windows XP Tip for.. August 9, 2004
Click Here to see a complete list of all of our previously released Tips!
Automate the DIR Command
If you go to the command prompt and type
then press Enter, every time thereafter that you type
the /w/o/p switches will be automatically applied. Of course, if you want only the /p switch, you can type
and press Enter.
You can undo the /w or /o or /p on each instance by simply typing
dir /-switch whatever
For example, if you wanted to do a directory with only the /w switch, you could enter
This is a nice trick that I've been using for a while now, and I really like it. When you exit the Command prompt window, however, the Dircmd setting returns to its default settings.