这样试试获取硬盘序列号:
var harddisk = ..sys.hd.getInfo()[["sSerialNumber"]];
if !harddisk {
var devices = ..sys.storage.getDevices();
for(idx,drives in devices){
var property = ..sys.storage.queryProperty( idx );
if(!property) continue ;
for(j=1;#drives;1){
if drives[j]=="C:"{
harddisk = property.serialNumber;
break 2;
}
}
}
}