diskavailable in xLabel 3.6.2 Thread last updated on 2006-07-14 06:34:42

Posted by member 206411 on 2006-07-12 03:08:55

The sysinfo command 'diskavailable' works perfectly when my External HDD is connected, but when they are disconnected they go crazy and show 8-10 digit number values.. I want them to say 0 when they are disconnected.. Does anyone know how to do this?

Posted by member 212670 on 2006-07-12 05:31:12 link

Here's an example using drives located at X:\ and Y:\. Change them accordingly. You also should see the pattern to add more drives or change the text. '1000' can be changed to a higher number if for some reason you have more than 1000GB. :P The following is all one line.

YourLabelText "[ifeval(diskAvailable('X:',GB),'>','1000')]Drive X: 0[else]Drive X: [diskAvailable('X:',GB)][endif] - [ifeval(diskAvailable('Y:',GB),'>','1000')]Drive Y: 0[else]Drive Y: [diskAvailable('Y:',GB)][endif]"

Posted by member 206411 on 2006-07-14 06:34:42 link

thanks so much, i was thinking along the lines of if over 700 GB... dont show or whatever.. exactly what you did.