Hard Disk serial number

Hard Disk serial number

Postby Massimo Linossi » Mon Jan 11, 2010 7:57 am

Hi to all.
Is it possible to retrieve the Hd serial number in the same way the dos command dir does ?
If I use the command dir c: the result is this :

Il volume nell'unità C non ha etichetta.
Numero di serie del volume: 2CB9-A087

the serial number with the command nserialhd("C:") is 1244440

Thanks a lot.
Massimo.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Hard Disk serial number

Postby Enrico Maria Giordano » Mon Jan 11, 2010 8:07 am

Massimo Linossi wrote:2CB9-A087
1244440


Are you sure? What do you get using

Code: Select all  Expand view
? DECTOHEX( NSERIALHD( "C:" ) )


?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Hard Disk serial number

Postby Massimo Linossi » Mon Jan 11, 2010 8:18 am

Hi Enrico.
Thanks for the tip. When I call the nserialhd, I forgot to use the c:\
Inserting the hard disk name, works perfectly. Without is returning
a string that is not correct.
Thanks again. Have a nice day.
Massimo.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 72 guests