Windows系統環境變量大全

---------------------- Page 1-----------------------

Windows                    系統環境變量大全

--- 
     %ALLUSERSPROFILE% 
     列出所有用戶Profile 文件位置。

     %APPDATA% 
     列出應用程序數據的默認存放位置。

     %CD% 
     列出當前目錄。

     %CLIENTNAME% 
     列出聯接到終端服務會話時客戶端的NETBIOS 名。

     %CMDCMDLINE% 
     列出啓動當前cmd.exe 所使用的命令行。

     %CMDEXTVERSION% 
     命令出當前命令處理程序擴展版本號。

     %CommonProgramFiles% 
     列出了常用文件的文件夾路徑。

     %COMPUTERNAME% 
     列出了計算機名。

     %COMSPEC% 
     列出了可執行命令外殼 (命令處理程序)的路徑。

     %DATE% 
     列出當前日期。

     %ERRORLEVEL% 
     列出了最近使用的命令的錯誤代碼。

     %HOMEDRIVE% 
     列出與用戶主目錄所在的驅動器盤符。

     %HOMEPATH% 
     列出用戶主目錄的完整路徑。

----------------------- Page 2-----------------------

%HOMESHARE% 
列出用戶共享主目錄的網絡路徑。

桌面 
%HOMEDRIVE%%HOMEPATH%\桌面

開 菜單: 
%HOMEDRIVE%%HOMEPATH%\                 「開始」菜單

%LOGONSEVER% 
列出有效的當前登錄會話的域名控制器名。

%NUMBER_OF_PROCESSORS% 
列出了計算機安裝的處理器數。

%OS% 
列出操作系統的名字。(WindowsXP 和Windows2000 列爲Windows_NT.)

%Path% 
列出了可執行文件的搜索路徑。

%PATHEXT% 
列出操作系統認爲可被執行的文件擴展名。

%PROCESSOR_ARCHITECTURE% 
列出了處理器的芯片架構。

%PROCESSOR_IDENTFIER% 
列出了處理器的描述。

%PROCESSOR_LEVEL% 
列出了計算機的處理器的型號。

%PROCESSOR_REVISION% 
列出了處理器的修訂號。

%ProgramFiles% 
列出了ProgramFiles 文件夾的路徑。

%PROMPT% 
列出了當前命令解釋器的命令提示設置。

%RANDOM% 
列出界於0 和32767 之間的隨機十進制數。

----------------------- Page 3-----------------------

    %SESSIONNAME% 
    列出連接到終端服務會話時的連接和會話名。

    %SYSTEMDRIVE% 
    列出了Windows 啓動目錄所在驅動器。

    %SYSTEMROOT% 
    列出了Windows 啓動目錄的位置。

    %TEMP%或%TMP% 
    列出了當前登錄的用戶可用應用程序的默認臨時目錄。

    %TIME% 
    列出當前時間。

    %USERDOMAIN% 
    列出了包含用戶帳號的域的名字。

    %USERNAME% 
    列出當前登錄的用戶的名字。

    %USERPROFILE% 
    列出當前用戶Profile 文件位置。

    %WINDIR% 
    列出操作系統目錄的位置

Windows XP 的環境變量大全 
--- 
    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

----------------------- Page 4-----------------------

子系統的顯示和工作方式。要看在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.

----------------------- Page 5-----------------------

    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: 列出了處理器的修訂號。

----------------------- Page 6-----------------------

     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: 列出操作 統目錄的位置。

發佈了51 篇原創文章 · 獲贊 1 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章