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.).
| Variable | Locale specific | Windows XP (CMD) | Windows Vista and later (CMD) |
|---|---|---|---|
| %ALLUSERSPROFILE% | Yes | C:\Documents and Settings\All Users | C:\ProgramData |
| %APPDATA% | Yes | C:\Documents and Settings\{username}\Application Data | C:\Users\{username}\AppData\Roaming |
| %CommonProgramFiles% | Yes | C:\Program Files\Common Files | C:\Program Files\Common Files |
| %CommonProgramFiles(x86)% | Yes | C:\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% | No | C:\Windows\System32\cmd.exe | C:\Windows\System32\cmd.exe |
| %HOMEDRIVE% | No | C: | 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% | No | C: | C: |
| %SystemRoot% | No | The 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} e.g. User | {username} e.g. User |
| %USERPROFILE% | Yes | %SystemDrive%\Documents and Settings\{username} | %SystemDrive%\Users\{username} |
| %windir% | No | %SystemDrive%\WINDOWS | %SystemDrive%\Windows |
<< back to Learn Microsoft Windows ( Road Map )
Bibliography:
https://www.advancedinstaller.com/
https://wikipedia.org/
https://microsoft.com/ ( manual ebook )
cmd, command line, command prompt, microsoft windows terminal, install the software, setup the program, environment variable, environ
Tidak ada komentar:
Posting Komentar