I should have added that if you just want the number of free Megabytes on the disk then do a division intead of multiplying.
(When you multiplied by 512 you were calclating the number of free bytes, not megabytes.)
FS = f$getdvi("DISK1","FREEBLOCKS")
MB = FS/2048
1 Block = 512 Bytes = 0.5 KiloBytes
1 MegaByte = 1024 KiloBytes
And welcome to the IT resource center forums.
I have one, but it's personal.