环境变量
Author: 陈剑波 Date: 1997-01-01
The command interpreter keeps a list of information about your computer in memory. This list is called the environment. Every program receives a copy of the environment when it begins,and many programs use some of its information to configure themselves or to find files. The environment is arranged as a series of variables and their related values. Each variable is a name stored in upper case. The name is followed by an equal sign [=]and some text. You can view or edit the environment with the SET command. A typical environment entry looks like this:LIB=c:\lib. In this example,the name of the variable is LIB and its value is “c:\lib.”
命令解释器在内存中保存着一份有关计算机的信息列表。这份表称为环境变量。每个程序当它启动时得到一份环境变量的拷贝,而许多程序使用其中某些信息来配置他们本身或寻找文件。环境变量被排列成一系列变量及其相关值。每一个变量都是以大写字母储存的名字。名字后跟一个等号(=)和某个文本。你可以用SET命令来查看或编辑环境变量。一个典型的环境变量如下所示:LIB=c:\lib。在这个例子中,变量名为LIB,其值为“c:\lib”。