Hallas, I've implemented your handy work...thanks a million. I've got one problem, and I'm not quite sure how to fix it. At this part of the script:

code:

:Calculate
Select
Case $Space < 1024 ;** Kilobytes
$Space = $Space * 100
$Units = " Kilobytes"
Case $Space => 1024 and $Space < 1048576 ;** Megabytes
$Space = ($Space * 100) / 1024
$Units = " Megabytes"
Case $Space => 1048576 ;** Gigabytes
$Space = $Space / 10486
$Units = " Gigabytes"
ENDSELECT
;** Convert the $Space value to a string by adding a space to the beginning
$Space = " " + $Space
$Length = LEN($Space)


;** Add the decimal point 2 spaces from the end.
$Space = SUBSTR($Space, 1, $Length - 2) + "." + SUBSTR($Space,$Length - 1, 2)
$ErrMsg = LTRIM($Space)
Return


It's very hard to distinguish between gigabytes, megabytes, and kilobytes in the returned data though the webpage.
I suspect that when disk space gets to a level that is very low it would be hard to distinguish between the three. Is there a way to add the appropriate identifier to a number before it is written to the database ie. gb, mb, or kb. If anyone could suggest something it would be appreciated.

Thanks

[This message has been edited by brewdude6 (edited 08 February 2001).]

[This message has been edited by brewdude6 (edited 08 February 2001).]

[This message has been edited by brewdude6 (edited 08 February 2001).]

_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain