Files
2026-07-20 09:23:17 -04:00

2.3 KiB

tags
tags
Windows
Variable Description
%ALLUSERSPROFILE% C:\ProgramData
%APPDATA% C:\Users\USERNAME\AppData\Roaming
%COMMONPROGRAMFILES% C:\Program Files\Common Files
%COMMONPROGRAMFILES(X86)% C:\Program Files (x86)\Common Files
%COMSPEC% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:\
%HOMEPATH% C:\Users\USERNAME
%LOCALAPPDATA% C:\Users\USERNAME\AppData\Local
%LOGONSERVER% \DOMAIN_LOGON_SERVER
%PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
%PATHEXT% .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMDATA% C:\ProgramData
%PROGRAMFILES% C:\Program Files
%PROGRAMFILES(X86)% C:\Program Files (x86)
%PROMPT% $P$G
%SYSTEMDRIVE% C:
%SYSTEMROOT% C:\Windows
%TEMP% C:\Users\USERNAME\AppData\Local\Temp
%TMP% C:\Users\USERNAME\AppData\Local\Temp
%USERDOMAIN% Userdomain associated with current user.
%USERDOMAIN_ROAMINGPROFILE% Userdomain associated with roaming profile.
%USERNAME% USERNAME
%USERPROFILE% C:\Users\USERNAME
%WINDIR% C:\Windows
%PUBLIC% C:\Users\Public
%PSMODULEPATH% %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%ONEDRIVE% C:\Users\USERNAME\OneDrive
%DRIVERDATA% C:\Windows\System32\Drivers\DriverData
%CD% Outputs current directory path. (Command Prompt.)
%CMDCMDLINE% Outputs command line used to launch current Command Prompt session. (Command Prompt.)
%CMDEXTVERSION% Outputs the number of current command processor extensions. (Command Prompt.)
%COMPUTERNAME% Outputs the system name.
%DATE% Outputs current date. (Command Prompt.)
%TIME% Outputs time. (Command Prompt.)
%ERRORLEVEL% Outputs the number of defining exit status of previous command. (Command Prompt.)
%PROCESSOR_IDENTIFIER% Outputs processor identifier.
%PROCESSOR_LEVEL% Outputs processor level.
%PROCESSOR_REVISION% Outputs processor revision.
%NUMBER_OF_PROCESSORS% Outputs the number of physical and virtual cores.
%RANDOM% Outputs random number from 0 through 32767.
%OS% Windows_NT