label, diskAvailable problem Thread last updated on 2003-08-02 14:27:37

Posted by member 53214 on 2003-08-02 14:15:11

Hi, I'm trying to make labels to show how much free space is left on my drives. Here's the options I'm using:

UserDiskLabelText "Drive C Free: [diskAvailable(C,MB)]"
UserDiskLabelJustify left
UserDiskLabelX 10
UserDiskLabelY 80
UserDiskLabelWidth 250
UserDiskLabelHeight 15
UserDiskLabelImage label_black.bmp
UserDiskLabelFontColor 224 230 236

Here's what it puts out on my screen:

Drive C Free: 1519386624

I know this is way wrong.

Posted by member 37809 on 2003-08-02 14:19:04 link

This should work:
UserDiskLabelText "Drive C Free: [diskAvailable('C:')]"


"If no units are given then the units are automatically selected based on the current value."

If you want MB units, see the docs again about units.

Posted by member 53214 on 2003-08-02 14:27:37 link

Thanks