cmd命令之set详解
C:\Users\Administrator>set ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Administrator\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=HY-201711070855 ComSpec=C:\windows\system32\cmd.exe DEVMGR_SHOW_DETAILS=1 FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\Administrator LOCALAPPDATA=C:\Users\Administrator\AppData\Local LOGONSERVER=\\HY-201711070855 NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\Sy \WindowsPowerShell\v1.0\;;E:\Microsoft VS Code\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=3d04 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=C:\windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\windows TEMP=C:\Users\ADMINI~1\AppData\Local\Temp TMP=C:\Users\ADMINI~1\AppData\Local\Temp USERDOMAIN=HY-201711070855 USERNAME=Administrator USERPROFILE=C:\Users\Administrator windir=C:\windows windows_tracing_flags=3 windows_tracing_logfile=C:\BVTBin\Tests\installpackage\csilogfile.log 使用: C:\Users\Administrator>set temp TEMP=C:\Users\ADMINI~1\AppData\Local\Temp C:\Users\Administrator>set userdomain USERDOMAIN=HY-201711070855
set命令详情使用,常用有:
set userdomain
用来查看电脑名称