How to get/read Hard disk label / drive label

Discussion in 'Python' started by Praveen, Nov 5, 2006.

  1. Praveen

    Praveen Guest

    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.

    Thanks in advance.
    Praveen, Nov 5, 2006
    #1
    1. Advertising

  2. 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/
    Rob Williscroft, Nov 5, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephane Guyetant

    Hard Disk Drive behavioral model

    Stephane Guyetant, Oct 2, 2003, in forum: VHDL
    Replies:
    0
    Views:
    558
    Stephane Guyetant
    Oct 2, 2003
  2. mh
    Replies:
    4
    Views:
    687
    Wolfgang Strobl
    May 31, 2005
  3. shailesh
    Replies:
    1
    Views:
    765
    Tim Golden
    Mar 28, 2007
  4. Replies:
    0
    Views:
    323
  5. Alex
    Replies:
    2
    Views:
    216
    Thomas 'PointedEars' Lahn
    Mar 1, 2006
Loading...

Share This Page