System Variables for Windows
Current system drive Letter
%systemdrive% or%homedrive% = c \
Current system directory
%systemroot% or%windir%=c:\windows
Current User profile folder
%userprofile% or%homepath%=c:\documents and settings\administrator\
All User profile folders
%allusersprofile%=c:\documents and Settings\All Users\
Temporary folder one of the current user temp caches
%temp% =%userprofile%\local Settings\Temp =c:\documents and Settings\Administrator\Local settings\temp\
Temporary folder two system temp cache
%systemroot%\temp\=c:\windows\temp\
Program Folder
%programfiles%=c:\program files\
The name of the domain that contains the user account
%userdomain%
The name of the user who is currently logged on
%username%=administrator
User Desktops
%userprofile%\ Desktop =c:\documents and settings\administrator\ desktop
Local default location where the application stores data
%appdata%=c:\documents and Settings\administrator\application Data
Show current directory
%cd%=c:\documents and Settings\Administrator
The exact command line to start the current Cmd.exe
%cmdcmdline%
The version number of the current command handler extension
%cmdextversion%
The name of the computer
%computername%
The exact path of the command-line interpreter to execute the program
%comspec%
Current date
%date%
Current time (accurate to milliseconds)
%time%
Error code for the previous command
%errorlevel%
Verify the name of the domain controller for the current logon session
%logonserver%
The number of processors installed on the computer
%number_of_processors%
Operating system name
%os%
Viewing system variables using the echo command
C:\users\asus>echo%number_of_processors%4c:\users\asus>echo%userprofile%c:\users\asus
=====end=====
System Variables for Windows