freeSpace(); $totalSpaceC = $diskStatusC->totalSpace(); $barWidthC = ($diskStatusC->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus1 = new DiskStatus('d:'); $freeSpace1 = $diskStatus1->freeSpace(); $totalSpace1 = $diskStatus1->totalSpace(); $barWidth1 = ($diskStatus1->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus2 = new DiskStatus('e:'); $freeSpace2 = $diskStatus2->freeSpace(); $totalSpace2 = $diskStatus2->totalSpace(); $barWidth2 = ($diskStatus2->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus3 = new DiskStatus('f:'); $freeSpace3 = $diskStatus3->freeSpace(); $totalSpace3 = $diskStatus3->totalSpace(); $barWidth3 = ($diskStatus3->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus4 = new DiskStatus('g:'); $freeSpace4 = $diskStatus4->freeSpace(); $totalSpace4 = $diskStatus4->totalSpace(); $barWidth4 = ($diskStatus4->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus5 = new DiskStatus('h:'); $freeSpace5 = $diskStatus5->freeSpace(); $totalSpace5 = $diskStatus5->totalSpace(); $barWidth5 = ($diskStatus5->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } try { $diskStatus6 = new DiskStatus('j:'); $freeSpace6 = $diskStatus6->freeSpace(); $totalSpace6 = $diskStatus6->totalSpace(); $barWidth6 = ($diskStatus6->usedSpace()/100) * 150; } catch (Exception $e) { echo 'Error ('.$e->getMessage().')'; exit(); } ?>

Disk Space
C:\ (of )
usedSpace() ?>% 
D:\ (of )
usedSpace() ?>% 
E:\ (of )
usedSpace() ?>% 
F:\ (of )
usedSpace() ?>% 
G:\ (of )
usedSpace() ?>% 
H:\ (of )
usedSpace() ?>% 
J:\ (of )
usedSpace() ?>%