FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hard Disk serial number
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Hard Disk serial number
Posted: Mon Jan 11, 2010 07: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.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Hard Disk serial number
Posted: Mon Jan 11, 2010 08:07 AM
Massimo Linossi wrote:2CB9-A087
1244440


Are you sure? What do you get using

Code (fw): Select all Collapse
? DECTOHEX( NSERIALHD( "C:" ) )


?

EMG
Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: Hard Disk serial number
Posted: Mon Jan 11, 2010 08: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.

Continue the discussion