Full checklist of atmosphere variables on Home windows 10

On Home windows 10, atmosphere variables are predefined names that signify the trail to sure areas inside the working system, resembling to a drive or a specific file or folder.

Atmosphere variables may be useful in plenty of eventualities, however they’re significantly helpful in the event you’re an IT particular person otherwise you’re fixing another person’s laptop, as you may rapidly navigate to sure areas with out even understanding the username or full path to a system folder.

For instance, as an alternative of searching C:Customers<UserName>AppDataRoaming, you may open the Run command (Home windows key + R), sort %APPDATA%, and press Enter to entry the identical path. Or you should utilize the %HOMEPATH% variable to entry the present consumer default folders location — the place the working system shops the folders for Desktop, Paperwork, Downloads, OneDrive, and so forth.

On this guide, you’ll be taught the checklist of the commonest atmosphere variables you should utilize on Windows 10.

Home windows 10 default atmosphere variables

Variable Home windows 10
%ALLUSERSPROFILE% C:ProgramData
%APPDATA% C:CustomersusernameAppDataRoaming
%COMMONPROGRAMFILES% C:Program FilesCommon Recordsdata
%COMMONPROGRAMFILES(x86)% C:Program Recordsdata (x86)Frequent Recordsdata
%CommonProgramW6432% C:Program FilesCommon Recordsdata
%COMSPEC% C:WindowsSystem32cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% C:Customersusername
%LOCALAPPDATA% C:CustomersusernameAppDataLocal
%LOGONSERVER% domain_logon_server
%PATH% C:Windowssystem32;C:Home windows;C:WindowsSystem32Wbem
%PathExt% .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMDATA% C:ProgramData
%PROGRAMFILES% C:Program Recordsdata
%ProgramW6432% C:Program Recordsdata
%PROGRAMFILES(X86)% C:Program Recordsdata (x86)
%PROMPT% $P$G
%SystemDrive% C:
%SystemRoot% C:Home windows
%TEMP% C:CustomersusernameAppDataLocalTemp
%TMP% C:CustomersusernameAppDataLocalTemp
%USERDOMAIN% Userdomain related to present consumer.
%USERDOMAIN_ROAMINGPROFILE% Userdomain related to roaming profile.
%USERNAME% username
%USERPROFILE% C:Customersusername
%WINDIR% C:Home windows
%PUBLIC% C:UsersPublic
%PSModulePath% %SystemRootpercentsystem32WindowsPowerShellv1.0Modules
%OneDrive% C:CustomersusernameOneDrive
%DriverData% C:WindowsSystem32DriversDriverData
%CD% Outputs present listing path. (Command Immediate.)
%CMDCMDLINE% Outputs command line used to launch present Command Immediate session. (Command Immediate.)
%CMDEXTVERSION% Outputs the variety of present command processor extensions. (Command Immediate.)
%COMPUTERNAME% Outputs the system identify.
%DATE% Outputs present date. (Command Immediate.)
%TIME% Outputs time. (Command Immediate.)
%ERRORLEVEL% Outputs the variety of defining exit standing of earlier command. (Command Immediate.)
%PROCESSOR_IDENTIFIER% Outputs processor identifier.
%PROCESSOR_LEVEL% Outputs processor degree.
%PROCESSOR_REVISION% Outputs processor revision.
%NUMBER_OF_PROCESSORS% Outputs the variety of bodily and digital cores.
%RANDOM% Outputs random quantity from 0 by means of 32767.
%OS% Windows_NT

Though you should utilize atmosphere variables to rapidly entry sure areas inside Home windows 10, you’ll usually use these variable when constructing an script or an utility.

Remember the fact that a number of the variables talked about aren’t location particular, together with %COMPUTERNAME%, %PATHEXT%, %PROMPT%, %USERDOMAIN%, %USERNAME%.

Whereas this information is targeted on Home windows 10, it’s vital to notice that these variable may even work on Home windows 8.x, Home windows 7, and Home windows Vista.

Replace November 18, 2019: This information was initially revealed in January 2017, and it’s been revised in November 2019.

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *