可以用CMD的SET命令来查看现有的系统变量,“="前的部分用%括起来就是。
常用:
%USERPROFILE% =C:Users用户名
%SystemRoot% =C:WINDOWS
%SystemDrive% =C:
%APPDATA% =C:Users用户名AppDataRoaming
%LOCALAPPDATA% =C:Users用户名AppDataLocal
%windir% =C:WINDOWS
%Path% =C:Windowssystem32;C:Windows;
%ProgramData% =C:ProgramData
%ProgramFiles% =C:Program Files
%ProgramFiles(x86)% =C:Program Files (x86)
其他:
%ALLUSERSPROFILE% =C:ProgramData
%CommonProgramFiles% =C:Program FilesCommon Files
%CommonProgramFiles(x86)% =C:Program Files (x86)Common Files
%CommonProgramW6432% =C:Program FilesCommon Files
%COMPUTERNAME% =MyPC
%ComSpec% =C:WINDOWSsystem32cmd.exe
%HOMEDRIVE% =C:
%HOMEPATH% =Users用户名
%LOGONSERVER% =\MicrosoftAccount
%OS% =Windows_NT
%ProgramW6432% =C:Program Files
%PUBLIC% =C:UsersPublic
%TEMP% =C:Users用户名AppDataLocalTemp
%TMP% =C:Users用户名AppDataLocalTemp
%USERDOMAIN% =MyPC
%USERNAME% =用户名
---------------------
作者:大厨无盐煮
来源:CNBLOGS
原文:https://www.cnblogs.com/nio-nio/p/9345750.html
版权声明:本文为作者原创文章,转载请附上博文链接!
内容解析By:CSDN,CNBLOG博客文章一键转载插件