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

[python-win32] Read USB memory stick serial number

2009-12-29 Thread python
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? My Windows research follows my signature. Any feedback ap

Re: [python-win32] odbc version

2009-12-29 Thread Vernon Cole
Robin: A quick reminder -- odbc (in pywin32) is db api version 1.0 compliant. adodbapi is db api version 2.0 compliant, and uses odbc DSN connections by default if you use a simple connection string. Select your db module by deciding what level of api compliance you need. If you use adodbapi,

[python-win32] odbc version

2009-12-29 Thread Robin Becker
I'm trying to use the odbc extension in a cross-python version. The problem is that recent pythons/win32 versions have changed the odbc dbi interface. Is there a way to check whether I should be importing dbi to find the type of date to be used or just assuming datetime is used? In the modern