Praveen wrote in news:1162752076.121514.313750
@h48g2000cwc.googlegroups.com in comp.lang.python:

> I want to read individual disk label
> 
> for Hard disk (C: drive, D: drive disk label)
> and
> CD-ROM disk label
> 
> Please provide some pointer to the code or document.
> 

You could use:

<url: 
http://aspn.activestate.com/ASPN/docs/ActivePython/2.2/PyWin32/win32api__
GetVolumeInformation_meth.html>

which will require:

http://sourceforge.net/projects/pywin32/

Or you can use this:

http://windowssdk.msdn.microsoft.com/en-us/library/ms685899.aspx

with this:

http://docs.python.org/dev/lib/module-ctypes.html

which is built in to python 2.5

Rob.
-- 
http://www.victim-prime.dsl.pipex.com/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to