How to get volume name under Win32?
Dale Strickland-Clark
dale at out-think.NOSPAMco.uk
Thu May 18 20:47:02 EDT 2000
That's excellent.
Thanks
In article <8g1tn6$cf2$1 at supernews.com>,
"Dale Strickland-Clark" <dale at out-think.NOSPAMco.uk> wrote:
I can't find a function that'll tell me the volume name for a given drive
letter - on NT / Win2000
Can anyone help?
#===================================
# not sure why it's in win32api and not win32file
import win32api vi = win32api.GetVolumeInformation("c:") print vi[0]
# see microsoft docs for GetVolumeInformation details
#====================================
can't post to c.l.p;
news.pacbell.net is way sick and deja.com is offline,
so here's an email instead
good luck!
d
Dirck Blaskey
Danbala Software
http://www.danbala.com
--
Dale Strickland-Clark
Out-Think Ltd, UK
Business Technology Consultants
Dale Strickland-Clark <dale at out-think.NOSPAMco.uk> wrote in message
news:8g1tn6$cf2$1 at supernews.com...
> I can't find a function that'll tell me the volume name for a given drive
> letter - on NT / Win2000
>
> Can anyone help?
>
> Thanks
>
> --
> Dale Strickland-Clark
> Out-Think Ltd, UK
>
>
>
More information about the Python-list
mailing list