View Single Post
  #4 (permalink)  
Old 01-08-2009, 01:13 AM
Flash44 Flash44 is offline
Junior Member
 
Join Date: Nov 2008
Posts: 7
Default

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);
}
Reply With Quote