2.9. Volume – The logical drives

The list of logical drives is accessible via windows.system.logicaldrives

Note

See sample windows.system

class windows.winobject.volume.LogicalDrive(name)[source]
name

Name of the logical drive

Type:

str

property handle

An handle on the object

Type:

HANDLE

Note

The handle is automaticaly closed when the object is destroyed

property path

The target path of the device

Type:

str

property type

The type of drive, values are:

  • DRIVE_UNKNOWN(0x0L)

  • DRIVE_NO_ROOT_DIR(0x1L)

  • DRIVE_REMOVABLE(0x2L)

  • DRIVE_FIXED(0x3L)

  • DRIVE_REMOTE(0x4L)

  • DRIVE_CDROM(0x5L)

  • DRIVE_RAMDISK(0x6L)

Type:

long or int (or subclass)

wait(timeout=INFINITE(0xffffffff))

Wait for the object