WINDOWS 系统内部的环境变量

本文详细介绍了计算机环境中各种关键环境变量的作用及用途,包括ALLUSERSPROFILE、APPDATA等,帮助读者理解这些变量如何影响应用程序的行为。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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: 列出操作系统目录的位置。 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值