next up previous contents
Next: Properties Up: FFish Script Objects Reference Previous: decFile   Contents


DiskInfo

Description

Retrieves the information of the specified hard disk

available: SWFKit Express, SWFKit, SWFKit Pro


Syntax

new DiskInfo(index)


Parameters

index
Integer. It can be 0, 1, 2, 3.
0
The master disk of the primary controller
1
The slave disk of the primary controller
2
The master disk of the secondary controller
3
The slave disk of the secondary controller


Examples

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




Subsections

Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.