View Single Post
Old 01-15-2009, 08:34 PM   #89
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,086
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by user_none View Post
Hm... is a good response. Try this:

Code:
calibre-debug -c "import wmi;print reduce(lambda x,y:repr(x)+repr(y), wmi.WMI().Win32_DiskDrive())"
That worked:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\marco\My Documents\GrabIt Downloads>calibre-debug -c "
import wmi;print reduce(lambda x,y:repr(x)+repr(y), wmi.WMI().Win32_DiskDrive())
"
'\'\\\'\\\\\\\'\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\'<_wmi_object: \\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\DESKT OP\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\root\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\cimv2:Win32_DiskDrive.Devi ceID="\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\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\\PHYSICALDRIVE7" >\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\'<_wmi_object: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\
\DESKTOP\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\root\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\cimv
2:Win32_DiskDrive.DeviceID="\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\.\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\PHYSICALDRIVE6">\\\
\\\\\\\\\\\\'<_wmi_object: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\DESKTOP\\\\\\\\\\\ \\\
\\root\\\\\\\\\\\\\\\\cimv2:Win32_DiskDrive.Device ID="\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\.\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\PHYSICALD
RIVE3">\\\\\\\'<_wmi_object: \\\\\\\\\\\\\\\\DESKTOP\\\\\\\\root\\\\\\\\cimv2:W i
n32_DiskDrive.DeviceID="\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\.\\\\\\\\\\\\\\\\PHYSICA
LDRIVE1">\\\'<_wmi_object: \\\\\\\\DESKTOP\\\\root\\\\cimv2:Win32_DiskDrive.D evi
ceID="\\\\\\\\\\\\\\\\.\\\\\\\\PHYSICALDRIVE5">\'< _wmi_object: \\\\DESKTOP\\root
\\cimv2:Win32_DiskDrive.DeviceID="\\\\\\\\.\\\\PHY SICALDRIVE2">'<_wmi_object: \\
DESKTOP\root\cimv2:Win32_DiskDrive.DeviceID="\\\\. \\PHYSICALDRIVE4">
mbovenka is offline   Reply With Quote