Re: [python-win32] Read USB memory stick serial number

2009-12-29 Thread Tim Roberts
pyt...@bdurham.com wrote: > Cheers for the great solution!! > > Your code gives me an easy to parse string containing the same serial > number as reported by USBDeview.exe. > As a driver writer, I am now required by law to give you the "party line" speech. For USB devices that have a serial nu

Re: [python-win32] Read USB memory stick serial number

2009-12-29 Thread python
Tim, Cheers for the great solution!! Your code gives me an easy to parse string containing the same serial number as reported by USBDeview.exe. Thank you very much, Malcolm Try using Win32_DiskDrive instead. I'm not 100% sure (read: I'm about 1% sure) what constitutes the USB serial number.

Re: [python-win32] Read USB memory stick serial number

2009-12-29 Thread Tim Golden
pyt...@bdurham.com wrote: Apparently retrieving the serial number of a USB memory stick is much more complicated than one would think. Is there a published Python recipe for determining a USB memory stick's device level serial number under Windows and/or Linux/Mac? 1. Here's a VBS script that