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);
}
|