View Single Post
Old 01-29-2009, 07:32 AM   #36
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
Here you go:
Quote:
C:\Program Files\calibre>calibre-debug -c "import wmi; print [(str(drive.PNPDeviceID), drive.Partitions) for drive in wmi.WMI().Win32_DiskDrive()]"
[('IDE\\DISKST3120213AS____________________________ _3.AHH___\\5&9C402E8&0&0.0.0'
, 2), ('USBSTOR\\DISK&VEN_GENERIC&PROD_USB_CF_READER&REV _1.01\\2004888&1', None)
, ('USBSTOR\\DISK&VEN_GENERIC&PROD_USB_MS_READER&REV _1.03\\2004888&3', None), ('
USBSTOR\\DISK&VEN_GENERIC&PROD_USB_SD_READER&REV_1 .00\\2004888&0', None), ('USBS
TOR\\DISK&VEN_GENERIC&PROD_USB_SM_READER&REV_1.02\ \2004888&2', None), ('USBSTOR\
\DISK&VEN_KINDLE&PROD_CARD_STORAGE&REV_0399\\B001B AB074470391&1', None), ('USBST
OR\\DISK&VEN_KINDLE&PROD_INTERNAL_STORAGE&REV_0399 \\B001BAB074470391&0', 1)]

C:\Program Files\calibre>calibre-debug -c "from calibre.devices.scanner import DeviceScanner; from calibre.devices.kindle.driver import KINDLE; s = eviceScanner(); s.scan(); print s.is_device_connected(KINDLE);"
True

C:\Program Files\calibre>pause
Press any key to continue . . .
Nate the great is offline   Reply With Quote