[Qt-interest] How can I get the hard disk serial number in Windows ?

Bob Hood bhood2 at comcast.net
Tue Jun 30 06:20:04 CEST 2009


Ah, sorry.  Misunderstood what you were after.  :)


Mhayk Whandson wrote:
> Hi Bob,
>
> That isn't the true hard disk serial number, if you use hardparm for
> windows or the software everest you will see the true serial that is
> like S18PJF0PC46883. The number which you references is a other serial
> number that Microsoft get to the system when you install, perharps,
> all that you reinstall microsoft operation system your system will win
> a one new serial.
>
> thanks.
>
> regards,
>
> On Mon, Jun 29, 2009 at 11:01 PM, Bob Hood<bhood2 at comcast.net> wrote:
>> Mhayk Whandson wrote:
>>
>> Hi all,
>>
>> Qt have a class which get the hard disk serial number ? Anyone have an
>> idea how can I get in Microsoft Windows without to use WMI.
>>
>> How about...QProcess() a "dir" of "C:\", and then QRegExp() the process
>> standard output for "Serial number is (\d+)"
>>
>>
>> Render me gone,                       |||
>> Bob                                 ^(===)^
>> ---------------------------------oOO--(_)--OOo---------------------------------
>>                       "If ya can't beat 'em, tariff 'em."
>>                                    - Harley-Davidson Motor Company
>>

/
/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090629/41cc5d8a/attachment.html 


More information about the Qt-interest-old mailing list