windows系统盘变量的简单介绍

什么叫系统变量

系统变量就是系统中设置的变量 用户变量 是根据用户需要可自定义的变量 两者都是变量只是权限不一样 一个是系统级 的一个是用户级的 用户变量可按需要随意定义 只要不和系统变量产生交叉 系统变量则不可由用户随便更改

宜兴网站制作公司哪家好,找创新互联公司!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联公司从2013年创立到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联公司

比如%systemroot%对应xp的windows目录和2k的winnt目录

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一样

windows7系统环境变量怎么办 使用PATH修改环境变量的方法介绍

1、windows系统环境变量说明

%USERPROFILE%表示 C:Documents and Settings当前用户名

%ALLUSERSPROFILE%表示 C:Documents and SettingsAll Users

%APPDATA%表示 C:Documents and Settings当前用户名Application Data

%ALLAPPDATA%表示 C:Documents and SettingsAll UsersApplication Data

%SYSTEMDRIVE% 表示 C:

%HOMEDRIVE%表示C:

%SYSTEMROOT%表示 C:WINDOWS

%WINDIR%表示 C:WINDOWS

%TEMP% 和 %TMP%表示 C:Documents and Settings当前用户名Local SettingsTemp

%ProgramFiles%表示 C:Program Files

%CommonProgramFiles%表示 C:Program FilesCommon Files

设置环境变量有两种方式:第一种是在命令提示符运行窗口中设置;第二种是通过单击“我的电脑→属性→高级”标签的“环境变量”按钮设置。需要注意的是,第一种设置环境变量的方式只对当前运行窗口有效,关闭运行窗口后,设置就不起作用了,而第二种设置环境变量的方式则是永久有效。

2、如何在命令提示符窗口中设置环境变量?

在“开始→运行”框中输入“cmd”后按“确定”按钮,出现命令运行窗口。在命令提示符下输入“set”即可查看环境变量设置。要查看具体某个环境变量的设置,比如要查看path环境变量的设置,可以输入“set path”。要创建一个环境变量,比如要创建一个名为aa的,值为“c:”的环境变量,可以输入“set aa=c:”命令。而要删除一个环境变量,比如要删除aa环境变量,则可输入“set aa=”命令(注意=后面不能有空格)。如何更改一个环境变量的设置呢?更改环境变量有两种情况:一是追加方式,即在不改变环境变量现有设置的情况下,增加变量的值,比如要给环境变量aa增加一个值为“D:”的设置,可以输入“set aa=%path%;D:”。另一种是完全修改方式,对于这种方式,我们可以采用直接创建一个环境变量的方法来实现。

3、用户变量和系统变量的关系是什么?

点击“我的电脑→属性→高级”标签的“环境变量”按钮,出现“环境变量”对话框,如果当前是以Administrator登录系统的用户,对话框的上面为Administrator的用户变量,对话框的下面为系统变量(即相当于系统中所有用户的用户变量)。有的时候我们会看到在用户变量和系统变量中都存在某一个环境变量,比如path,那么path的值到底是用户变量中的值还是系统变量中的值,或者两者都不是呢?答案是两者都不是。path变量的值是用户变量中的值与系统变量中的值的叠加。

4、改变环境变量和环境变量中的值应该注意什么?

环境变量和环境变量的值不要含有空格,也不要用中文,切记!

Windows 10用户变量、系统变量等环境变量新建、编辑修改与删除的方法

  本文介绍在Windows 10操作系统中进行 用户变量 、 系统变量 等两种环境变量的新建、修改与删除方法。

  首先,按下 Windows徽标键 ,同时用拼音输入法键入“控制面板”。

  在“应用”中找到控制面板并打开。

  选择“查看方式”为“类别”,选择“系统与安全”。

  选择“系统”。

  在打开的界面中,选择右侧的“高级系统设置”。

  在打开的界面中,选择“环境变量”。

  即可分别对“用户变量”与“系统变量”加以新建、编辑、删除。

求windows系统变量大全

英文来源:

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系统盘变量的简单介绍
URL网址:https://www.cdcxhl.com/article30/dsepcso.html

成都网站建设公司_创新互联,为您提供网站排名关键词优化定制开发静态网站响应式网站App设计

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都做网站