- set 命令查看全部环境变量:
%AppData%(应用程序数据)、%TEMP%(临时文件夹)、%TMP%(临时文件夹) 、%LocalAppData%(应用程序本地数据)三个环境变量:
C:\Users\hasee>echo %appdata% C:\Users\hasee\AppData\Roaming C:\Users\hasee>echo %TEMP% C:\Users\hasee\AppData\Local\Temp C:\Users\hasee>echo %TMP% C:\Users\hasee\AppData\Local\Temp C:\Users\hasee>echo %LocalAppData% C:\Users\hasee\AppData\Local
%SystemDrive%、%SystemRoot%、%windir%(windows directory)
C:\Users\hasee>echo %SystemDrive% C: C:\Users\hasee>echo %SystemRoot% C:\Windows C:\Users\hasee>echo %windir% C:\Windows