It is currently April 19th, 2024, 12:16 pm

Hard Drive Info

Get help with creating, editing & fixing problems with skins
malbec
Posts: 4
Joined: July 1st, 2010, 5:42 pm

Hard Drive Info

Post by malbec »

Hi!
I am new to forum, sorry if this is a basic question.
I want to creat a skin that shows:
- Disk Space (total GB free)
- Disk Capacity (total GB of the disk)
- % use and free
Do I have to creat 3 measure of the disk?
Or with one is enough?
I would really apreaciate any help with the code.
Thanks!!
User avatar
JpsCrazy
Posts: 667
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Hard Drive Info

Post by JpsCrazy »

It'd be easiest with three, if it's even possible with less.

Code: Select all

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Total=1

[MeasurePercentUsed]
Measure=Calc
Formula=[MeasureFreeDiskSpace]/[MeasureTotalDiskSpace]
malbec
Posts: 4
Joined: July 1st, 2010, 5:42 pm

Re: Hard Drive Info

Post by malbec »

Hi JpsCrazy!
Thanks for the reply and the code.
Very clear.
malbec
Posts: 4
Joined: July 1st, 2010, 5:42 pm

Re: Hard Drive Info

Post by malbec »

Please one more question:
I created a meter like this and I used your measures:

Code: Select all

[MeterHDD1Label]
MeasureName=MeasurePercentUsed
Meter=String
FontSize=8
Text="Drive %1"
However, the meter is showing 0.0
Can you please tell me what I am doing wrong?
Thanks!!
malbec
Posts: 4
Joined: July 1st, 2010, 5:42 pm

Re: Hard Drive Info

Post by malbec »

Hi!
I solve the problem by putting the name of the variables without the "[" and "]". The meter now displays the % of disk use.
Thanks!