C:UsersAdministrator>set ALLUSERSPROFILE=C:ProgramData APPDATA=C:UsersAdministratorAppDataRoaming CommonProgramFiles=C:Program FilesCommon Files CommonProgramFiles(x86)=C:Program Files (x86)Common Files CommonProgramW6432=C:Program FilesCommon Files COMPUTERNAME=HY-201711070855 ComSpec=C:windowssystem32cmd.exe DEVMGR_SHOW_DETAILS=1 FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=UsersAdministrator LOCALAPPDATA=C:UsersAdministratorAppDataLocal LOGONSERVER=\HY-201711070855 NUMBER_OF_PROCESSORS=4 OS=Windows_NT Path=C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSy WindowsPowerShellv1.0;;E:Microsoft VS Codein 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:windowssystem32WindowsPowerShellv1.0Modules PUBLIC=C:UsersPublic SESSIONNAME=Console SystemDrive=C: SystemRoot=C:windows TEMP=C:UsersADMINI~1AppDataLocalTemp TMP=C:UsersADMINI~1AppDataLocalTemp USERDOMAIN=HY-201711070855 USERNAME=Administrator USERPROFILE=C:UsersAdministrator windir=C:windows windows_tracing_flags=3 windows_tracing_logfile=C:BVTBinTestsinstallpackagecsilogfile.log 使用: C:UsersAdministrator>set temp TEMP=C:UsersADMINI~1AppDataLocalTemp C:UsersAdministrator>set userdomain USERDOMAIN=HY-201711070855
set命令详情使用,常用有:
set userdomain
用来查看电脑名称