in reply to Can Perl read the hard drive registration #?
Seems to do what you want.#!/usr/bin/perl use Win32::DriveInfo; ($VolumeName, $VolumeSerialNumber, $MaximumComponentLength, $FileSystemName, @attr) = Win32::DriveInfo::VolumeInfo('c'); print "$VolumeSerialNumber";
|
|---|