* @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @copyright Copyright © 2010 tiggersWelt.net **/ require ('fatinfo.php'); $cmd = array_shift ($argv); $sectorSize = null; $clusterSectors = null; $reservedSectors = null; $fatCopies = null; $rootEntries = null; $fatSectors = null; $fatIndex = 0; $format = null; while (count ($argv) > 0) { switch ($argv [0]) { case '-f': $format = $argv [1]; break; case '-sS': $sectorSize = intval ($argv [1]); break; case '-cS': $clusterSectors = intval ($argv [1]); break; case '-rS': $reservedSectors = intval ($argv [1]); break; case '-fC': $fatCopies = intval ($argv [1]); break; case '-rE': $rootEntries = intval ($argv [1]); break; case '-fS': $fatSectors = intval ($argv [1]); break; case '-fI': $fatIndex = intval ($argv [1]); break; default: break (2); } array_shift ($argv); array_shift ($argv); } $Image = new FAT ($argv [0], $format, $sectorSize, $reservedSectors, $clusterSectors, $fatSectors, $fatCopies, $rootEntries); ?>