hard disk serial

David Stockwell winexpert at hotmail.com
Tue May 25 09:06:33 EDT 2004


Hi,

What you want to use is the win32api.GetVolumeInformation. API.  Its part of 
win32.

To get to it you need to import it....

import win32api

Then I believe you would use

win32api.GetVolumeInformation (  ... etc)

The actual api is documented here:  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/getvolumeinformation.asp



(I'm learning python myself but know the windows sdk pretty well)

Good Luck

David Stockwell
-------
Cell: http://cellphone.duneram.com/index.html
Cam: http://www.duneram.com/cam/index.html
Tax: http://www.duneram.com/index.html




>From: "Lea Informatique" <sbard at lexpert-auto.com>
>To: "David Stockwell" <winexpert at hotmail.com>
>Subject: Re: hard disk serial
>Date: Tue, 25 May 2004 14:55:23 +0200
>
>I'm targeting win32
>for the moment it's the only OS we should use
>
>did you get an idea ?
>
>
>----- Original Message -----
>From: "David Stockwell" <winexpert at hotmail.com>
>To: <sbard at lexpert-auto.com>; <python-list at python.org>
>Sent: Tuesday, May 25, 2004 2:51 PM
>Subject: RE: hard disk serial
>
>
> > Hi,
> >
> > What OS are you targeting?  Or are you looking for an OS independent
> > solution?
> >
> > David
> > -------
> > Cell: http://cellphone.duneram.com/index.html
> > Cam: http://www.duneram.com/cam/index.html
> > Tax: http://www.duneram.com/index.html
> >
> >
> >
> >
> > >From: <sbard at lexpert-auto.com>
> > >To: python-list at python.org
> > >Subject: hard disk serial
> > >Date: Tue, 25 May 2004 14:44:49 +0200
> > >
> > >Hi every one
> > >I try to get hard disk serial number
> > >how can i do this ?
> > >
> > >-> THANK'S A LOT
> > >
> > >
> > >--
> > >http://mail.python.org/mailman/listinfo/python-list
> >
> > _________________________________________________________________
> > Best Restaurant Giveaway Ever! Vote for your favorites for a chance to 
>win
> > $1 million! http://local.msn.com/special/giveaway.asp
> >
> >
> >
>
>

_________________________________________________________________
Get 200+ ad-free, high-fidelity stations and LIVE Major League Baseball 
Gameday Audio! http://radio.msn.click-url.com/go/onm00200491ave/direct/01/





More information about the Python-list mailing list