`

WINDOWS系统变量路径(dos命令下可用)

阅读更多
转贴自:http://azhuan.popgo.org/article.asp?id=72

英文来源:http://techrepublic.com.com/5100-10877_11-5986211.html?tag=nl.e064

2005.12.09 第1版

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: 列出操作系统目录的位置。

WINDOWS系统变量

ALLUSERSPROFILE=H:\Documents and Settings\All Users //所有用户的PROFILE路径
APPDATA=H:\Documents and Settings\Administrator\Application Data //当前用户的应用程序路径
ClusterLog=H:\WINDOWS\Cluster\cluster.log //集群日志路径
CommonProgramFiles=H:\Program Files\Common Files //应用程序公用的文件路径
COMPUTERNAME=E2003 //计算机名称
ComSpec=H:\WINDOWS\system32\cmd.exe //当前的命令解释器
HOMEDRIVE=H: //当前用户的主盘
HOMEPATH=\Documents and Settings\Administrator //当前用户的主目录
LOGONSERVER=\E2003 //登录的服务器
NUMBER_O_PROCESSORS=1 //当前计算机的处理器数字
OS=Windows_NT //当前系统的内核
Path=H:\Program Files\Support Tools\;H:\WINDOWS\system32; //学过DOS的都知道
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH //以前DOS下默认的是COM,EXE,BAT,现在已经有这么多了哟,以前都不知道,脚本都可以不打扩展名了
PROCESSOR_ARCHITECTURE=x86 //处理器架构
PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 3, GenuineIntel //处理器标识符
PROCESSOR_LEVEL=15 //没注意过,不知道有什么用
PROCESSOR_REVISION=0103 //版本?
ProgramFiles=H:\Program Files //应用程序的默认安装目录
PROMPT=$P$G //学过DOS的都知道
SESSIONNAME=Console //会话名称?
SystemDrive=H: //系统所在的盘符
SystemRoot=H:\WINDOWS //系统所在的目录
TEMP=H:\DOCUME~1\ADMINI~1\LOCALS~1\Temp //当前用户的临时目录
TMP=H:\DOCUME~1\ADMINI~1\LOCALS~1\Temp //同上
USERDNSDOMAIN=MCSE.COM //当前用户所在的域的DNS表示
USERDOMAIN=MCSE //NETBIOS表示
USERNAME=administrator //当前用户名
USERPROFILE=H:\Documents and Settings\Administrator //当前用户的配置文件目录
windir=H:\WINDOWS //windows所在的目录,总是跟systemroot一样
分享到:
评论

相关推荐

    Dos命令大全

    调用外部程序,所有的DOS命令和命令行程序都可以由start命令来调用。 入侵常用参数: MIN 开始时窗口最小化 SEPARATE 在分开的空间内开始 16 位 Windows 程序 HIGH 在 HIGH 优先级类别开始应用程序 REALTIME 在 ...

    windowsnt 技术内幕

    理解DirectX API 支持基于Win16和MS-DOS的应用程序 NT的DOS虚拟机(NTVDM)简介 Win32环境下的Win16 简介 运行多NTVDM 在OS/2子系统中运行应用程序 OS/2的CONFIG.SYS文件 运行Presentatin Manager 理解Windows NT...

    sqlplus命令的使用大全

    该命令使用是一般要指定要执行的文件的全路径,否则从缺省路径(可用SQLPATH变量指定)下读取指定的文件。 @@用在sql脚本文件中,用来说明用@@执行的sql脚本文件与@@所在的文件在同一目录下,而不用指定要执行sql脚本...

    cmd操作命令和linux命令大全收集

    CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本) 命令大全 1. gpedit.msc-----组策略 2. sndrec32-------录音机 3. Nslookup-------IP地址侦测器 ,是一个 监测网络中 DNS...

    grub4dos-V0.4.6a-2017-02-04更新

    执行时可以不用输入扩展名,比如输入test如果当前路径下有一个test.g4b就会自动使用。 2013-10-17 1.修改代码支持新版HOTKEY。 2013-07-10 1.insmod现在支持长文件名(以前最多11个字符,现在没有限制). 2....

    如何编写批处理文件批处理文件批处理文件

    调用外部程序,所有的DOS命令和命令行程序都可以由start命令来调用。 入侵常用参数: MIN 开始时窗口最小化 SEPARATE 在分开的空间内开始 16 位 Windows 程序 HIGH 在 HIGH 优先级类别开始应用程序 REALTIME 在 ...

    入门学习Linux常用必会60个命令实例详解doc/txt

    要想真正理解Linux系统,就必须从Linux命令学起,通过基础的命令学习可以进一步理解Linux系统。 不同Linux发行版的命令数量不一样,但Linux发行版本最少的命令也有200多个。这里笔者把比较重要和使用频率最多的命令...

    700个批处理打包下载.rar

    98下获取当前路径.cmd cdd.cmd cmd.exe CMD加密.txt CMD命令速查手册.cmd config.ini C盘转换为NTFS格式.cmd date.txt debug生成取色按钮程序.bat debug生成取色按钮程序.cmd dir.bat dos下重启.bat Fjcyz.bat for....

    WinRAR_4.0.exe

    这个命令将从当前路径中的 RAR 压缩文件解压所有的 *.asm 文件: rar e '*.rar' '*.asm' 命令可以是下列中的任何一个: a 添加文件到压缩文件中。 例子: 1) 从当前目录添加所有的 *.hlp 文件到 help.rar ...

    《计算机操作系统》期末复习指导

    对考试很有帮助的.......... 《计算机操作系统》期末复习指导 第一章 计算机操作系统概述 ...(1)操作系统文件的目录组织是一个树形结构,从根结点到叶子称为文件的全路径名,文件可以由其全路径名唯一确定...

    2009 达内Unix学习笔记

    cd ~/s0807 直接进入主目录下的某目录(“cd ~"相当于主目录的路径的简写)。 ls 显示当前目录的所有目录和文件。 用法 ls [-aAbcCdeEfFghHilLmnopqrRstux1@] [file...] ls /etc/ 显示某目录下的所有文件和目录,如...

    大量批处理实用程序例程

    获取某路径下的所有文件名.cmd 限制条件批量建立文件夹.cmd reaname.bat 中文数字转换为阿拉伯数字.cmd 人民币大小写互转程序.cmd 人民币金额小写转大写.cmd 十进制转二进制.cmd 十进制转十六进制.cmd 字母大小写...

    中文简体压缩软件RAR 6.0

    这个命令将从当前路径中的 RAR 压缩文件解压所有的 *.asm 文件: rar e '*.rar' '*.asm' 命令可以是下列中的任何一个: a 添加文件到压缩文件中。 例子: 创建或更新已存在的压缩文件 myarch,...

    API之网络函数---整理网络函数及功能

    GetSystemDirectory 取得Windows系统目录(即System目录)的完整路径名 GetTempFileName 这个函数包含了一个临时文件的名字,它可由应用程序使用 GetTempPath 获取为临时文件指定的路径 GetVolumeInformation ...

    网管教程 从入门到精通软件篇.txt

    Windows XP(包括 Windows 2000)的控制台命令是在系统出现一些意外情况下的一种非常有效的诊断和测试以及恢复系统功能的工具。小编的确一直都想把这方面的命令做个总结,这次辛苦老范给我们整理了这份实用的秘笈。 ...

    下面是一系列蓝屏中可能出现的代码

    3 0x00000003 系统找不到指定的路径。 4 0x00000004 系统无法开启档案。 5 0x00000005 拒绝存取。 6 0x00000006 无效的代码。 7 0x00000007 储存体控制区块已毁。 8 0x00000008 储存体空间不足,无法处理这个...

    易语言 茶凉专用模块

    参数 窗口句柄, 整数型, 可空, 为空则为系统级定时器(通常为空) .参数 时钟周期, 整数型, , 毫秒级单位 1秒=1000毫秒 .参数 定时器事件处理, 子程序指针, , 定时器触发事件 .子程序 创建多级目录, 逻辑型, 公开, ...

    winrar3.7 Beta8

    <br> c) WinRAR 外壳扩展在 Windows 95 下无效。 <br> 版本 3.70 beta 6 <br> 1. 错误修正: <br> a) WinRAR 外壳不允许对锁定的 RAR 卷创建恢复卷。现在恢复卷对锁定的和非锁定的 RAR 卷都可用...

    C语言程序设计标准教程

    在很多情况下都不要求无参函数有返回值, 此时函数类型符可以写为void。 我们可以改为一个函数定义: void Hello() { printf ("Hello,world \n"); }  这里,只把main改为Hello作为函数名,其余不变。Hello 函数是...

    CAD快捷键文档

    ACAD.PGP是一个纯文本文件,用户可以使用ASCⅡ文本编辑器(如DOS下的EDIT)或直接使用WINDOWS附件中的记事本来进行编辑。用户可以自行添加一些Auto CAD命令的快捷方式到文件中。 通常,快捷命令使用一个或两个易于...

Global site tag (gtag.js) - Google Analytics