Available disk space for all local disks

This script is pretty dope and will let you know how much space you have remaining on every local disk it finds. You could tweak it to check on space for other types of drives easily enough.

This script will output the total amount of free space in either GB or MB.

Here’s some additional information regarding the drive type values.

  • 0 = unknown
  • 1 = no root directory
  • 2 = removable disk
  • 3 = local disk
  • 4 = network drive
  • 5 = cdrom
  • 6 = ram disk

Leave a Reply