in reply to Re: Can Perl read the hard drive registration #?
in thread Can Perl read the hard drive registration #?

I am on Windows XP but I plan on running this on my server to people can run it web-based if possible? Or will it search my server rather than their hard drive?

I get an error while running your script though "'hdparam' is not recognized as an internal or external command...".

Thanks.

  • Comment on Re: Re: Can Perl read the hard drive registration #?

Replies are listed 'Best First'.
Re: Re: Re: Can Perl read the hard drive registration #?
by Koosemose (Pilgrim) on Mar 20, 2004 at 18:04 UTC

    It'll show them the info about your servers Hard drive... And as far as I know, there's no way to show their hard drives info... But, just in case you want it for some other reason, try the vol command in WinXP. atm, I don't have time to work out a script to just get the serial number. But, the output is as follows (on my machine at least):

    Volume in drive C has no label. Volume Serial Number is 7C9B-238A
    Just Another Perl Alchemist
Re: Re: Re: Can Perl read the hard drive registration #?
by calin (Deacon) on Mar 20, 2004 at 17:31 UTC

    hdparm is a Linux-only command, as I said in the original reply. Also you need root privileges to run it.

    As of Windows XP, you're out of luck with me... ;)