|
|||
|
Hi,
I am about to purchase swfkit pro3.2 but the problem is that the diskinfo function does not return anything in vista OS whereas it is working absolutely fine in XP. Also in vista it worked fine twice in 5 attempts. What is the problem. Is there any tweak to overcome this. for (i = 0; i < 4; i++) { var di = new DiskInfo(i); if (di != null) { trace(di.modelNumber); trace(di.serialNumber); trace(di.revisionNumber); trace(di.driveType); trace(di.bufferSize); trace(di.cylinders); trace(di.heads); trace(di.sectors); } } for this code i get undefined in trace for all parameteres in vista where as it works fine in XP. Kindly help me resolve this issue. I will order swfkit right away |
|
|||
|
Hello, I'm new here and I had the same problem, but found another way using "Drive.drive":
var HDserial = Drive.drives[0].serialNumber; ini.writeString("SYSINFO", "Hard Disk Serial", HDserial); or ini.writeString("SYSINFO", "Hard Disk Serial", Drive.drives[0].serialNumber); Works both in Vista. In the SWFkit helpfile you can find this: var d = Drive.drives; for (i = 0; i < d.length; i++) { trace(d[i].driveLetter, ":\t", d[i].driveType); trace("\t", d[i].fileSystem); trace("\t", d[i].isReady); trace("\t", d[i].rootFolder); trace("\t", d[i].serialNumber); trace("\t", d[i].totalSize); trace("\t", d[i].volumeName); } |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|