Page 1 of 1
nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 3:52 pm
by Marc Vanzegbroeck
Hello,
What is the different between the serialnumber returned by nSerialHD() and the number returned by the dos-command
wmic diskdrive get serialnumber
I'm always use nSerialHD(), but I see that the other number is also with characters, instead only numbers.
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 4:10 pm
by Enrico Maria Giordano
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 5:48 pm
by Marc Vanzegbroeck
Unfortunately give this also a number.
Enrico Maria Giordano wrote:Try
EMG
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 6:20 pm
by Enrico Maria Giordano
Can I see a sample of such serial?
EMG
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 9:40 pm
by Marc Vanzegbroeck
Code: Select all | Expand
nSerialHD() = 410452486
NUMTOHEX( NSERIALHD() ) = 18770206
wmic diskdrive get serialnumber = S3TRNA0M316529
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 9:43 pm
by Enrico Maria Giordano
You forgot the code.

EMG
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 9:44 pm
by Marc Vanzegbroeck
It's added now
Enrico Maria Giordano wrote:You forgot the code.

EMG
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 9:57 pm
by Enrico Maria Giordano
nSerialHD() returns the number of the VOL command.
EMG
Re: nserialhd() vs serialnumber
Posted: Thu Mar 11, 2021 10:12 pm
by Marc Vanzegbroeck
Yes now I see.
It's NUMTOHEX( NSERIALHD() ) that give the same result as the VOL command.
So NSERIALHD() is not the real serial-number. After re-formating it, it will be different then.
There are also utilities to change it
