谁有发现关于“环境变量”比较好比较完整的介绍?

自己找了不少,可都没有比较满意的,麻烦大家提供点线索。资料最好比较完整全面!thank you~

Understanding Windows XP's environment variables
理解Windows XP的环境变量

Keywords: Windows XP | Microsoft Windows | Network administration/implementation
关键字:Windows XP | Microsoft Windows | 网络管理/实施

Takeaway:
Windows XP's environment variables control the behavior of batch files and programs, and also control the way Windows XP and the MS-DOS subsystem appears and works. Check out this list of environment variables, along with their descriptions.

概述:
Windows XP的环境变量控制了批处理文件和程序的行为,也控制了Windows XP和MS-DOS子系统的显示和工作方式。检阅这个环境变量列表,连同它们的描述。

《endurer注:1。check out v. 付帐后离开, ,检验, 合格, 及格
2。along with 连同...一起, 随同...一起》

Environment variables are used to control the behavior of batch files and programs in Windows XP; they also control the way Windows XP and the MS-DOS subsystem appears and works. To see a complete list of the environment variables that are active on a Windows XP system, follow these steps:
环境变量用于控制Windows XP里的批处理文件和程序的行为,也控制了Windows XP和MS-DOS子系统的显示和工作方式。要看在Windows XP系统中现行的完整环境变量列表,请按下列步骤操作:

Open a Command Prompt window.
打开一个命令提示符窗口。

Type Set and press [Enter].
输入Set命令并回车。

You'll see a list of the current environment variable settings. While some of them are familiar, such as PATH, and some are easy to figure out, such as COMPUTERNAME, others are more cryptic. Here's a sampling of Windows XP's environment variables:
你将看到当前环境变量设置列表。其中一些是熟悉的,如PATH,有一些容易领会,如COMPUTERNAME,其它的则较模糊。这是一个

《endurer注:1。figure out 合计为, 计算出, 解决, 断定, 领会到》

ALLUSERSPROFILE: Lists the location of the All Users Profile.
ALLUSERSPROFILE:列出所有用户Profile文件位置。

APPDATA: Lists the location where applications store data by default.
APPDATA: 列出应用程序数据的默认存放位置。

CD: Lists the current directory string.
CD: 列出当前目录。

CLIENTNAME: List the client's NETBIOS name when connected to terminal server session.
CLIENTNAME: 列出联接到终端服务会话时客户端的NETBIOS名。

CMDCMDLINE: Lists the command line used to start the current cmd.exe.
CMDCMDLINE: 列出启动当前cmd.exe所使用的命令行。

CMDEXTVERSION: Lists the version number of the current Command Processor Extensions.
CMDEXTVERSION: 命令出当前命令处理程序扩展版本号。

CommonProgramFiles: Lists the path to the Common Files folder.
CommonProgramFiles: 列出了常用文件的文件夹路径。

COMPUTERNAME: Lists the name of the computer.
COMPUTERNAME: 列出了计算机名。

COMSPEC: Lists the path to the command shell executable.
COMSPEC: 列出了可执行命令外壳(命令处理程序)的路径。

DATE: Lists the current date.
DATE: 列出当前日期。

ERRORLEVEL: Lists the error code of the most recently used command.
ERRORLEVEL: 列出了最近使用的命令的错误代码。

HOMEDRIVE: Lists the drive letter is connected to the user's home directory.
HOMEDRIVE: 列出与用户主目录所在的驱动器盘符。

HOMEPATH: Lists the full path of the user's home directory.
HOMEPATH: 列出用户主目录的完整路径。

HOMESHARE: Lists the network path to the user's shared home directory.
HOMESHARE: 列出用户共享主目录的网络路径。

LOGONSEVER: Lists the name of the domain controller that validated the current logon session.
LOGONSEVER: 列出有效的当前登录会话的域名控制器名。

NUMBER_OF_PROCESSORS: Lists the number of processors installed on the computer.
NUMBER_OF_PROCESSORS: 列出了计算机安装的处理器数。

OS: Lists the name of the operating system. (Windows XP and Windows 2000 list the operating system as Windows_NT.)
OS: 列出操作系统的名字。(Windows XP 和 Windows 2000 列为 Windows_NT.)

Path: Lists the search path for executable files.
Path: 列出了可执行文件的搜索路径。

PATHEXT: Lists the file extensions that the operating system considers to be executable.
PATHEXT: 列出操作系统认为可被执行的文件扩展名。

PROCESSOR_ARCHITECTURE: Lists the processor's chip architecture.
PROCESSOR_ARCHITECTURE: 列出了处理器的芯片架构。

PROCESSOR_IDENTFIER: Lists the description of the processor.
PROCESSOR_IDENTFIER: 列出了处理器的描述。

PROCESSOR_LEVEL: Lists the model number of the computer's processor.
PROCESSOR_LEVEL: 列出了计算机的处理器的型号。

PROCESSOR_REVISION: Lists the revision number of the processor.
PROCESSOR_REVISION: 列出了处理器的修订号。

ProgramFiles: Lists the path to the Program Files folder.
ProgramFiles: 列出了Program Files文件夹的路径。

PROMPT: Lists the command-prompt settings for the current interpreter.
PROMPT: 列出了当前命令解释器的命令提示设置。

RANDOM: Lists a random decimal number between 0 and 32767.
RANDOM: 列出界于0 和 32767之间的随机十进制数。

SESSIONNAME: Lists the connection and session names when connected to terminal server session.
SESSIONNAME: 列出连接到终端服务会话时的连接和会话名。

SYSTEMDRIVE: Lists the drive containing the Windows root directory.
SYSTEMDRIVE: 列出了Windows启动目录所在驱动器。

SYSTEMROOT: Lists the location of the Windows root directory.
SYSTEMROOT: 列出了Windows启动目录的位置。

TEMP and TMP: List default temporary directories for applications that are available to users who are currently logged on.

TEMP and TMP: 列出了当前登录的用户可用应用程序的默认临时目录。

TIME: Lists the current time.
TIME: 列出当前时间。

USERDOMAIN: Lists the name of the domain that contains the user's account.
USERDOMAIN: 列出了包含用户帐号的域的名字。

USERNAME: Lists the name of the user currently logged on.
USERNAME: 列出当前登录的用户的名字。

USERPROFILE: Lists the location of the profile for the current user.
USERPROFILE: 列出当前用户Profile文件位置。

WINDIR: Lists the location of the OS directory.
WINDIR: 列出操作系统目录的位置。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2007-09-04
说明:
第一行:变量
第二行:类型
第三行:说明

%ALLUSERSPROFILE%
局部
返回所有“用户配置文件”的位置。

%APPDATA%
局部
返回默认情况下应用程序存储数据的位置。

%CD%
局部
返回当前目录字符串。

%CMDCMDLINE%
局部
返回用来启动当前的Cmd.exe的准确命令行。

%CMDEXTVERSION%
系统
返回当前的“命令处理程序扩展”的版本号。

%COMPUTERNAME%
系统
返回计算机的名称。

%COMSPEC%
系统
返回命令行解释器可执行程序的准确路径。

%DATE%
系统
返回当前日期。使用与date /t命令相同的格式。由Cmd.exe生成。有关date命令的详细信息,请参阅Date。

%ERRORLEVEL%
系统
返回最近使用过的命令的错误代码。通常用非零值表示错误。

%HOMEDRIVE%
系统
返回连接到用户主目录的本地工作站驱动器号。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。

%HOMEPATH%
系统
返回用户主目录的完整路径。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。

%HOMESHARE%
系统
返回用户的共享主目录的网络路径。基于主目录值的设置。用户主目录是在“本地用户和组”中指定的。

%LOGONSEVER%
局部
返回验证当前登录会话的域控制器的名称。

%NUMBER_OF_PROCESSORS%
系统
指定安装在计算机上的处理器的数目。

%OS%
系统
返回操作系统的名称。Windows2000将操作系统显示为Windows_NT。

%PATH%
系统
指定可执行文件的搜索路径。

%PATHEXT%
系统
返回操作系统认为可执行的文件扩展名的列表。

%PROCESSOR_ARCHITECTURE%
系统
返回处理器的芯片体系结构。值:x86,IA64。

%PROCESSOR_IDENTFIER%
系统
返回处理器说明。

%PROCESSOR_LEVEL%
系统
返回计算机上安装的处理器的型号。

%PROCESSOR_LEVEL%
系统
返回处理器的版本号。

%PROMPT%
局部
返回当前解释程序的命令提示符设置。由Cmd.exe生成。

%RANDOM%
系统
返回0到32767之间的任意十进制数字。由Cmd.exe生成。

%SYSTEMDRIVE%

返回包含WindowsXP根目录(即系统根目录)的驱动器。

%SYSTEMROOT%
系统
返回WindowsXP根目录的位置。

%TEMP%、%TMP%
系统和用户
返回对当前登录用户可用的应用程序所使用的默认临时目录。有些应用程序需要TEMP,而其它应用程序则需要TMP。

%TIME%
系统
返回当前时间。使用与time /t命令相同的格式。由Cmd.exe生成。有关time命令的详细信息,请参阅Time。

%USERDOMAIN%
局部
返回包含用户帐户的域的名称。

%USERNAME%
局部
返回当前登录的用户的名称。

%UserPrefix%
局部
返回当前用户的配置文件的位置。

%WINDIR%
系统
返回操作系统目录的位置。

参考资料:互联网

相似回答