CD Device Name

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Tue Apr 2 04:26:08 EST 2002


"Russell" <Russell.Every at MentumGroup.com> wrote:

>Anyone ideas (prefereably Python code) on how to get the label of a CD under
>Windows 2000?
>

You need Mark Hammond's Win32 extensions. Then:

from win32api import GetVolumeInformation

label = GetVolumeInformation("E:\\")[0]


--
Dale Strickland-Clark
Riverhall Systems Ltd



More information about the Python-list mailing list