View Single Post
Old 11-10-2007, 12:10 AM   #52
FlyTags
Member
FlyTags began at the beginning.
 
FlyTags's Avatar
 
Posts: 10
Karma: 48
Join Date: Nov 2007
Location: Upstate NY
Device: Amazon Kindle
And...

Code:
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import wmi
>>> c = wmi.WMI()
>>> drives = c.Win32_DiskDrive()
>>> mm = drives[-3]
>>> print mm

instance of Win32_DiskDrive
{
        BytesPerSector = 512;
        Capabilities = {3, 4, 7};
        CapabilityDescriptions = {"Random Access", "Supports Writing", "Supports
 Removable Media"};
        Caption = "Sony PRS-505/UC USB Device";
        ConfigManagerErrorCode = 0;
        ConfigManagerUserConfig = FALSE;
        CreationClassName = "Win32_DiskDrive";
        Description = "Disk drive";
        DeviceID = "\\\\.\\PHYSICALDRIVE7";
        FirmwareRevision = "1000";
        Index = 7;
        InterfaceType = "USB";
        Manufacturer = "(Standard disk drives)";
        MediaLoaded = TRUE;
        MediaType = "Removable Media";
        Model = "Sony PRS-505/UC USB Device";
        Name = "\\\\.\\PHYSICALDRIVE7";
        Partitions = 1;
        PNPDeviceID = "USBSTOR\\DISK&VEN_SONY&PROD_PRS-505/UC&REV_1000\\08004610
0042D42E&0";
        SectorsPerTrack = 63;
        Signature = 1;
        Size = "213857280";
        Status = "OK";
        SystemCreationClassName = "Win32_ComputerSystem";
        SystemName = "ARTEMIS";
        TotalCylinders = "26";
        TotalHeads = 255;
        TotalSectors = "417690";
        TotalTracks = "6630";
        TracksPerCylinder = 255;
};

>>>
FlyTags is offline   Reply With Quote