|
kidzgy
中级用户
  
积分 262
发帖 129
注册 2007-7-11
状态 离线
|
『楼 主』:
系统环境变量大全
使用 LLM 解释/回答一下
%allusersprofile% 本地“所有用户”配置文件的位置。 C:\Documents and Settings\All Users
%appdata% 本地默认情况下应用程序存储数据的位置。 C:\Documents and Settings\Administrator\Application Data
%cd% 本地当前目录字符串。 C:\Documents and Settings\Administrator\桌面
%cmdcmdline% 本地用来启动当前的 Cmd.exe 的准确命令行。 cmd /c ""C:\Documents and Settings\Administrator\桌面\a.bat" "
%cmdextversion% 系统当前的“命令处理程序扩展”的版本号。2
%computername% 系统计算机的名称。 xxxxx
%comspec% 系统命令行解释器可执行程序的准确路径。 C:\WINDOWS\system32\cmd.exe
%date% 系统当前日期。使用与 date /t 命令相同的格式。由 Cmd.exe 生成。有关 date 命令的详细信息,请参阅 Date。
%time% 系统当前时间。使用与 time /t 命令相同的格式。由 Cmd.exe 生成。有关 time 命令的详细信息,请参阅 Time。
%errorlevel% 系统上一条命令的错误代码。通常用非零值表示错误。
%homedrive% 系统连接到用户主目录的本地工作站驱动器号。基于主目录值而设置。用户主目录是在“本地用户和组”中指定的。 C:
%homepath% 系统用户主目录的完整路径。基于主目录值而设置。用户主目录是在“本地用户和组”中指定的。 \Documents and Settings\Administrator
%homeshare% 系统用户的共享主目录的网络路径。基于主目录值而设置。用户主目录是在“本地用户和组”中指定的。
%logonserver% 本地验证当前登录会话的域控制器的名称。 \\xxxx
%number_of_processors% 系统指定安装在计算机上的处理器的数目。
%os% 系统操作系统名称。Windows 2000 显示其操作系统为 Windows_NT。 Windows_NT
%path% 系统指定可执行文件的搜索路径。 C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
%pathext% 系统操作系统认为可执行的文件扩展名的列表。 .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
%processor_architecture% 系统处理器的芯片体系结构。值:x86 或 IA64 基于Itanium x86
%processor_identfier% 系统处理器说明。
%processor_level% 系统计算机上安装的处理器的型号。 15
%processor_revision% 系统处理器的版本号。 4f02
%prompt% 本地当前解释程序的命令提示符设置。由 Cmd.exe 生成。$P$G
%random% 系统 0 到 32767 之间的任意十进制数字。由 Cmd.exe 生成。 30580
%systemdrive% 系统包含 Windows server operating system 根目录(即系统根目录)的驱动器。 C:
%systemroot% 系统Windows server operating system 根目录的位置。C:\WINDOWS
%temp% C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp和 %tmp% C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp系统和用户对当前登录用户可用的应用程序所使用的默认临时目录。有些应用程序需要 TEMP,而其他应用程序则需要 TMP。
%userdomain% 本地包含用户帐户的域的名称。 xxxxxx
%username% 本地当前登录的用户的名称。 Administrator
%userprofile% 本地当前用户的配置文件的位置。 C:\Documents and Settings\Administrator
%windir% 操作系统目录的位置。 C:\WINDOWS
%programfiles% 程序文件夹的位置。C:\Program Files
----------------------------------------------------------------------------------------------------
如果未全,请大家补全。或是有错误可更正请发帖。
%allusersprofile% Location of the local "All Users" profile. C:\Documents and Settings\All Users
%appdata% Location where the application stores data by default locally. C:\Documents and Settings\Administrator\Application Data
%cd% Local current directory string. C:\Documents and Settings\Administrator\Desktop
%cmdcmdline% The exact command line used to start the current Cmd.exe. cmd /c ""C:\Documents and Settings\Administrator\Desktop\a.bat" "
%cmdextversion% The version number of the system's current "Command Processor Extensions". 2
%computername% The name of the system computer. xxxxx
%comspec% The exact path to the system command line interpreter executable. C:\WINDOWS\system32\cmd.exe
%date% The current system date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date.
%time% The current system time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time.
%errorlevel% The error code of the previous command on the system. Usually indicates an error with a non-zero value.
%homedrive% The local workstation drive letter to which the system connects to the user's home directory. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups". C:
%homepath% The full path to the system user's home directory. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups". \Documents and Settings\Administrator
%homeshare% The network path to the user's shared home directory on the system. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups".
%logonserver% The name of the domain controller that authenticates the current logon session locally. \\xxxx
%number_of_processors% The number of processors installed on the system as specified.
%os% The name of the system operating system. Windows 2000 shows its operating system as Windows_NT. Windows_NT
%path% The search path for executable files specified by the system. C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
%pathext% The list of file extensions that the system operating system considers executable. .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
%processor_architecture% The chip architecture of the system processor. Values: x86 or IA64 based on Itanium x86
%processor_identfier% The system processor description.
%processor_level% The model of the processor installed on the system computer. 15
%processor_revision% The version number of the system processor. 4f02
%prompt% The command prompt setting of the current interpreter locally. Generated by Cmd.exe. $P$G
%random% Any decimal number between 0 and 32767 on the system. Generated by Cmd.exe. 30580
%systemdrive% The drive that contains the root directory (i.e., the system root) of the Windows server operating system. C:
%systemroot% The location of the root directory of the Windows server operating system. C:\WINDOWS
%temp% C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp and %tmp% C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp The default temporary directory used by applications available to the current logged-on user for the system and the user. Some applications require TEMP, while others require TMP.
%userdomain% The name of the domain that contains the user account locally. xxxxxx
%username% The name of the currently logged-on user locally. Administrator
%userprofile% The location of the current user's profile locally. C:\Documents and Settings\Administrator
%windir% The location of the operating system directory. C:\WINDOWS
%programfiles% The location of the program folder. C:\Program Files
----------------------------------------------------------------------------------------------------
If not complete, please supplement. Or if there are errors that can be corrected, please post.
|
|
2008-1-26 22:07 |
|
|
qianmo717
初级用户
 
积分 68
发帖 32
注册 2007-12-9
状态 离线
|
|
2008-1-26 22:15 |
|
|
zjwplp
新手上路

积分 10
发帖 4
注册 2007-8-29
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
哪用批处理怎么配置系统环境变量呢
How to configure system environment variables using batch processing?
|
|
2008-1-26 22:25 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by zjwplp at 2008-1-26 10:25 PM:
哪用批处理怎么配置系统环境变量呢
@echo off
rem 添加系统环境变量
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v test /t REG_SZ /d "hello world" /f
Originally posted by zjwplp at 2008-1-26 10:25 PM:
How to configure system environment variables with batch processing?
@echo off
rem Add system environment variable
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v test /t REG_SZ /d "hello world" /f
|
|
2008-1-27 01:10 |
|
|
gujicao2005
初级用户
 
积分 26
发帖 13
注册 2008-3-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
太感谢楼主了,顶~~~~~~~~~~~
Thanks a lot to the LZ, up~~~~~~~
|
|
2008-3-13 21:17 |
|
|
fulminate
新手上路

积分 10
发帖 5
注册 2008-3-13
状态 离线
|
|
2008-3-14 01:21 |
|
|
hnfeng
初级用户
 
积分 89
发帖 36
注册 2007-12-20
状态 离线
|
|
2008-3-14 09:13 |
|
|
zhitingkey
初级用户
 
积分 84
发帖 32
注册 2007-9-17 来自 湖北
状态 离线
|
|
2008-3-14 09:58 |
|
|
knoppix7
银牌会员
    
积分 1287
发帖 634
注册 2007-5-2 来自 cmd.exe
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
有时间不如看看ntcmds.chm
下表列出 Windows XP 的系统和局部环境变量。
变量 类型 说明
%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% 系统 返回操作系统的名称。Windows 2000 将操作系统显示为 Windows_NT。
%PATH% 系统 指定可执行文件的搜索路径。
%PATHEXT% 系统 返回操作系统认为可执行的文件扩展名的列表。
%PROCESSOR_ARCHITECTURE% 系统 返回处理器的芯片体系结构。值: x86,IA64。
%PROCESSOR_IDENTFIER% 系统 返回处理器说明。
%PROCESSOR_LEVEL% 系统 返回计算机上安装的处理器的型号。
%PROCESSOR_LEVEL% 系统 返回处理器的版本号。
%PROMPT% 局部 返回当前解释程序的命令提示符设置。由 Cmd.exe 生成。
%RANDOM% 系统 返回 0 到 32767 之间的任意十进制数字。由 Cmd.exe 生成。
%SYSTEMDRIVE% 系统 返回包含 Windows XP 根目录(即系统根目录)的驱动器。
%SYSTEMROOT% 系统 返回 Windows XP 根目录的位置。
%TEMP% and %TMP% 系统和用户 返回对当前登录用户可用的应用程序所使用的默认临时目录。有些应用程序需要 TEMP,而其它应用程序则需要 TMP。
%TIME% 系统 返回当前时间。使用与 time /t 命令相同的格式。由 Cmd.exe 生成。有关 time 命令的详细信息,请参阅 Time。
%USERDOMAIN% 局部 返回包含用户帐户的域的名称。
%USERNAME% 局部 返回当前登录的用户的名称。
%UserPrefix% 局部 返回当前用户的配置文件的位置。
%WINDIR% 系统 返回操作系统目录的位置。
Have time might as well take a look at ntcmds.chm
The following table lists the system and local environment variables of Windows XP.
Variable Type Description
%ALLUSERSPROFILE% Local Returns the location of "All Users Profile".
%APPDATA% Local Returns the location where applications store data by default.
%CD% Local Returns the current directory string.
%CMDCMDLINE% Local Returns the exact command line used to start the current Cmd.exe.
%CMDEXTVERSION% System Returns the version number of the current "Command Processor Extension".
%COMPUTERNAME% System Returns the name of the computer.
%COMSPEC% System Returns the exact path of the command-line interpreter executable.
%DATE% System Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date.
%ERRORLEVEL% System Returns the error code of the most recently used command. Usually indicated by a non-zero value for an error.
%HOMEDRIVE% System Returns the local workstation drive letter connected to the user's home directory. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups".
%HOMEPATH% System Returns the full path of the user's home directory. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups".
%HOMESHARE% System Returns the network path of the user's shared home directory. Set based on the home directory value. The user's home directory is specified in "Local Users and Groups".
%LOGONSEVER% Local Returns the name of the domain controller that authenticates the current logon session.
%NUMBER_OF_PROCESSORS% System Specifies the number of processors installed on the computer.
%OS% System Returns the name of the operating system. Windows 2000 displays the operating system as Windows_NT.
%PATH% System Specifies the search path for executable files.
%PATHEXT% System Returns the list of file extensions that the operating system considers executable.
%PROCESSOR_ARCHITECTURE% System Returns the chip architecture of the processor. Values: x86, IA64.
%PROCESSOR_IDENTFIER% System Returns the processor description.
%PROCESSOR_LEVEL% System Returns the model of the processor installed on the computer.
%PROCESSOR_LEVEL% System Returns the version number of the processor.
%PROMPT% Local Returns the command prompt setting of the current interpreter. Generated by Cmd.exe.
%RANDOM% System Returns any decimal number between 0 and 32767. Generated by Cmd.exe.
%SYSTEMDRIVE% System Returns the drive that contains the Windows XP root directory (i.e., the system root directory).
%SYSTEMROOT% System Returns the location of the Windows XP root directory.
%TEMP% and %TMP% System and User Returns the default temporary directory used by applications available to the current logged-on user. Some applications need TEMP, while others need TMP.
%TIME% System Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time.
%USERDOMAIN% Local Returns the name of the domain that contains the user account.
%USERNAME% Local Returns the name of the currently logged-on user.
%UserPrefix% Local Returns the location of the current user's profile.
%WINDIR% System Returns the location of the operating system directory.
|
|
2008-3-14 20:57 |
|
|
zcnvnv
初级用户
 
积分 114
发帖 36
注册 2007-12-22
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
开始-运行-CMD-SET-{ENTER}:
你电脑所有的环境变量就都在那了。
Start - Run - CMD - SET - {ENTER}:
All the environment variables of your computer are there.
|
|
2008-3-14 22:42 |
|