Setting Defaults For Windows DOS Directory Listings
Under Windows 9X
- Open C:\autoexec.bat in a text editor.
- In this file add the line set dircmd=X at the end replacing X with any valid switches for the dir command (visible at a DOS prompt by entering dir /?) separated by a space.
- Reboot your system.
Under Windows NT4
- Right click on My Computer and select Properties.
- Click on the Environment tab.
- Click in the System Variables section.
- Enter dircmd in the Variable: box
- Enter any valid switches for the dir command (visible at a DOS prompt by entering dir /?) separated by a space in the Value: box.
- Click on the Set button.
- Click on the OK button until all of the dialog boxes have been closed.
Under Windows 2000 and Windows XP
- Right click on My Computer and select Properties.
- Click on the Advanced tab.
- Click on the Environment Variables Button.
- Click on the New... button in the System variables section.
- Enter dircmd in the Variable Name: box
- Enter any valid switches for the dir command (visible at a DOS prompt by entering dir /?) separated by a space in the Variable Value: box.
- Click on the OK button until all of the dialog boxes have been closed.
Now each time you enter dir with no switches at a DOS or command prompt it will behave as if you had typed all of the switches you entered above..
Lila Godel's Web Site
Brought To You By Hamilton Services, Inc.