|
The environment is a special area in DOS where key information is kept for use by both DOS commands and programs. Normally DOS keeps three pieces of information in the environment space:
In addition, many programs ask to put a variable in the environment to point to locations such as where temporary file should be stored. It's possible to fill the environment and run out of space. PATH"Follow the yellow brick road" was the instruction to Dorothy in the Wizard of Oz. What can you tell DOS? Follow the PATH. Let's say you have commands you need to execute often in the following subdirectories: C:\DOS C:\EDIT C:\UTILITY and D:\MYSTUFF. It is not reasonable to ask you to constantly change to those directories in order to execute the commands; it's also not reasonable to ask you to type the full pathname when trying to execute one of the commands. Instead, you may place your list of commonly used directories into the environment using the PATH command:
(Use semicolons to separate entries.) When you do this and then execute a command at the DOS prompt DOS will first look for that command in the default directory. If not found there, DOS will then search each directory in the PATH for the command. The first valid command found on the path will be executed. If the command is not found in the current directory or on the path, then you will receive an error message from DOS. Organizing Your Hard DiskUse the information in this chapter to organize your hard disk. Many computer users just fill up their disk in a sort of random manner and then have difficulty trying to find something later. Some rules of thumb should help:
Back up! - Back up! - Back up! - Back up! - Back up! - Back up! It can't be said often enough! |
Please use the contact
form for questions or comments about this web site.
Copyright © 2001
Computer Knowledge, All Rights Reserved
Pray the Rosary for peace.