This is a list of windows variables:NT 5 & 6
| %COMPUTERNAME% | {computername} |
| %COMSPEC% | C:\Windows\System32\cmd.exe |
| %CommonProgramFiles% | C:\Program Files\Common Files |
| %HOMEDRIVE% | C: |
| %logonserver% | Server that authenticates user |
| %OS% | Windows_NT |
| %PROGRAMFILES% | Directory containing program files, usually C:\Program Files |
| %PROMPT% | Code for current command prompt format. Code is usually $P$G |
| %SYSTEMDRIVE% | The drive containing the Windows XP root directory, usually C: |
| %SYSTEMROOT% | The Windows XP root directory, usually C:\Windows |
| %UserDomain% | The name of the domain that the user is currently logged into |
| %USERNAME% | {username} |
| %WINDIR% | C:\Windows |
NT6
| %ALLUSERSPROFILE% | C:\ProgramData |
| %APPDATA% | C:\Users\(username}\AppData\Roaming |
| %HOMEPATH% | \Users\{username} or set by AD under profile |
| %LOCALAPPDATA% | C:\Users\{username}\AppData\Local |
| %ProgramData% | C:\ProgramData |
| %Public% | C:\Users\Public |
| %TEMP% and %TMP% | C:\Users\{Username}\AppData\Local\Temp |
| %USERPROFILE% | C:\Users\{username} |
NT5
| %ALLUSERSPROFILE% | C:\Documents and Settings\All Users |
| %APPDATA% | C:\Documents and Settings\{username}\Application Data |
| %homepath% | \Documents and Settings\{username} or set by AD under profile |
| %TEMP% and %TMP% | C:\DOCUME~1\{username}\LOCALS~1\Temp |
| %USERPROFILE% | C:\Documents and Settings\{username} |
Informational
| %DATE% | Current date in the format determined by the Date command |
| %TIME% | Current time in the format determined by the Time command |
| %CD% | Current directory with its full path |
| %ERRORLEVEL% | Number defining exit status of a previous command or program |
| %PATH% | All paths for Executables |
| %PATHEXT% | Extensions loaded from Path |
| %RANDOM% | Random number |
