hard disk serial

Discussion in 'Python' started by Guest, May 25, 2004.

  1. Guest

    Guest Guest

    Hi every one
    I try to get hard disk serial number
    how can i do this ?

    -> THANK'S A LOT
     
    Guest, May 25, 2004
    #1
    1. Advertising

  2. Hi !

    For Windows :

    from win32com.client import Dispatch
    FSO = Dispatch('Scripting.FileSystemObject')
    listDrives = FSO.Drives
    for item in listDrives:
    try:
    print ' '
    print 'Lettre du Drive :'+str(item.DriveLetter)
    print 'Numéro de série :'+str(item.SerialNumber)
    print 'Type de Drive :'+str(item.DriveType)
    print 'Type format :'+str(item.FileSystem)
    print 'Accès (prêt ?) :'+str(item.IsReady)
    print 'Nom du volume :'+str(item.VolumeName)
    print 'Nom de partage :'+str(item.ShareName)
    print 'Path :'+str(item.Path)
    print 'Dossier racine :'+str(item.RootFolder)
    print 'Espace disponible:'+str(item.AvailableSpace)
    print 'Espace libre :'+str(item.FreeSpace)
    print 'Taille totale :'+str(item.TotalSize)
    except:
    print 'Pb avec ce disque'



    --
    @-salutations
    --
    Michel Claveau
    mél : http://cerbermail.com/?6J1TthIa8B
    site : http://mclaveau.com
     
    Michel Claveau/Hamster, May 25, 2004
    #2
    1. Advertising

  3. Guest

    Guest Guest

    THANK'S david !!!!
    it's works very well !!

    i feel like a student, but sometimes it's good !

    <> a écrit dans le message de news:
    c8vevf$9g4$...
    > Hi every one
    > I try to get hard disk serial number
    > how can i do this ?
    >
    > -> THANK'S A LOT
    >
    >
     
    Guest, May 25, 2004
    #3
    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:
    570
    Stephane Guyetant
    Oct 2, 2003
  2. Ahmed Essa

    hard disk serial number

    Ahmed Essa, Nov 17, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    515
    Nick Hertl
    Nov 17, 2005
  3. David Stockwell

    Re: hard disk serial

    David Stockwell, May 25, 2004, in forum: Python
    Replies:
    0
    Views:
    373
    David Stockwell
    May 25, 2004
  4. MRAB
    Replies:
    3
    Views:
    1,125
    Paul Boddie
    Jun 4, 2009
  5. Ahmed Essa

    help plz hard disk serial number

    Ahmed Essa, Nov 17, 2005, in forum: ASP .Net Security
    Replies:
    0
    Views:
    135
    Ahmed Essa
    Nov 17, 2005
Loading...

Share This Page