Understanding Windows XP's environment variables
理解Windows XP的環境變數
英文來源:http://techrepublic.com.com/5100-10877_11-5986211.html?tag=nl.e064
by Greg Shultz
作者:Greg Shultz
翻譯:Purple Endurer
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: 列出作業系統目錄的位置。