获取CPU序列号
By
admin
at 2017-12-10 • 1人收藏 • 1430人看过
import sys.cpu; var cpuInfo = sys.cpu.getInfo(1,{ INT eax;INT ebx;INT ecx;INT edx } ) var cpuid = string.format("%X%X",cpuInfo.edx,cpuInfo.eax ) import console; console.log("开始") console.log("CPU序列号",cpuid) console.log("CPU频率",math.round(sys.cpu.getFrequence()/1000,2) + " GHz" ) console.log("CPU商标",sys.cpu.getBrand() ) console.log("CPU厂商", sys.cpu.getVender() ) console.pause(true);
登录后方可回帖