Windows 7中的C:\ Users \%USERNAME%\ AppData \ Local \ Temp是否有环境变量?


3

是否存在默认指向的环境变量 C:\Users\%USERNAME%\AppData\Temp 在Windows 7中?

或者可能 C:\Users\%USERNAME%\AppData\local\Temp 对于这个问题?

这些被称为什么?




我错了,实际上 %temp%
leeand00

不重复。杜佩没有提到 %temp% 要么 %tmp%
DavidPostill

Answers:


5

是否存在通过指向的环境变量

C:\Users\%USERNAME%\AppData\Temp

没有

或者可能

C:\Users\%USERNAME%\AppData\local\Temp

的默认值 %TEMP%%TMP%C:\Users\{username}\AppData\Local\Temp


Windows 7环境变量

Variable                   Windows Vista/7
%ALLUSERSPROFILE% 
(%PROGRAMDATA%)            C:\ProgramData
%APPDATA%                  C:\Users\{username}\AppData\Roaming
%COMPUTERNAME%             {computername}
%COMMONPROGRAMFILES%       C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)%  C:\Program Files (x86)\Common Files
%COMSPEC%                  C:\Windows\System32\cmd.exe
%HOMEDRIVE%                C:
%HOMEPATH%                 \Users\{username}
%LOCALAPPDATA%             C:\Users\{username}\AppData\Local
%LOGONSERVER%              \\{domain_logon_server}
%PATH%                     C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths}
%PATHEXT%                  .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMFILES%             C:\Program Files
%PROGRAMFILES(X86)%        C:\Program Files (x86) (only in 64-bit version)
%PROMPT%                   Code for current command prompt format. Code is usually $P$G
%SystemDrive%              C:
%SystemRoot%               C:\Windows
%TEMP% and %TMP%           C:\Users\{username}\AppData\Local\Temp
%USERDOMAIN%               {userdomain}
%USERNAME%                 {username}
%USERPROFILE%              C:\Users\{username}
%WINDIR%                   C:\Windows
%PUBLIC%                   C:\Users\Public
%PROGRAMDATA%              C:\ProgramData
%PSModulePath%             %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

资源 Windows 7环境变量

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.