script:
<?php
function GetVolumeLabel($drive) {
// Try to grab the volume name
if (preg_match('#Volume Serial Number is (.*)\n#i', shell_exec('dir '.$drive.':'), $m)) {
$volname = ' ('.$m[1].')';
} else {
$volname = '';
}
return $volname;
}
$serial = str_replace("(","",str_replace(")","",GetVolumeLabel("c")));
echo $serial;
?>
Show serial number Harddisk with php
Selasa, 01 Januari 2013
Diposting oleh
frendi HI
di
18.24
Label: javascript, php
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar