Rabu, 12 Mei 2021

Environment variable 1

An environment variable is a variable with a dynamically defined value that depends on the context/environment that it is being used (OS, logged in user, etc.).

VariableLocale specificWindows XP (CMD)Windows Vista and later (CMD)
%ALLUSERSPROFILE%YesC:\Documents and Settings\All UsersC:\ProgramData
%APPDATA%YesC:\Documents and Settings\{username}\Application DataC:\Users\{username}\AppData\Roaming
%CommonProgramFiles%YesC:\Program Files\Common FilesC:\Program Files\Common Files
%CommonProgramFiles(x86)%YesC:\Program Files (x86)\Common Files (only in 64-bit version)C:\Program Files (x86)\Common Files (only in 64-bit version)
%CommonProgramW6432%Yes- (not supported, not replaced by any value)C:\Program Files\Common Files (only in 64-bit version)
%COMPUTERNAME%No{computername}{computername}
%ComSpec%NoC:\Windows\System32\cmd.exeC:\Windows\System32\cmd.exe
%HOMEDRIVE%NoC:C:
%HOMEPATH%Yes\Documents and Settings\{username}\Users\{username}
%LOCALAPPDATA%Yes- (not supported, not replaced by any value)C:\Users\{username}\AppData\Local
%LOGONSERVER%No\\{domain_logon_server}\\{domain_logon_server}
%ProgramData%Yes- (not supported, not replaced by any value)%SystemDrive%\ProgramData
%ProgramFiles%Yes%SystemDrive%\Program Files%SystemDrive%\Program Files
%ProgramFiles(x86)%Yes%SystemDrive%\Program Files (x86) (only in 64-bit version)%SystemDrive%\Program Files (x86) (only in 64-bit version)
%ProgramW6432%Yes- (not supported, not replaced by any value)%SystemDrive%\Program Files (only in 64-bit version)
%PUBLIC%Yes- (not supported, not replaced by any value)%SystemDrive%\Users\Public
%SystemDrive%NoC:C:
%SystemRoot%NoThe Windows directory, usually C:\Windows, formerly C:\WINNT%SystemDrive%\Windows
%TEMP% and %TMP%Yes%SystemDrive%\Documents and Settings\{username}\Local Settings\Temp%SystemRoot%\TEMP (for system environment variables %TMP% and %TEMP%), %USERPROFILE%\AppData\Local\Temp (for user environment variables %TMP% and %TEMP%)
%USERDOMAIN%No{userdomain}{userdomain}
%USERNAME%No{username}{username}
%USERPROFILE%Yes%SystemDrive%\Documents and Settings\{username}%SystemDrive%\Users\{username}
%windir%No%SystemDrive%\WINDOWS%SystemDrive%\Windows

Reference:

https://www.advancedinstaller.com/
https://wikipedia.org/
https://microsoft.com/

cmd, command line, command prompt, microsoft windows terminal, install the software, setup the program, environment variable

Related Topics:

Tidak ada komentar:

Posting Komentar