It is currently April 25th, 2024, 1:58 am

SD-Card reading

Get help with installing and using Rainmeter.
lordnaickol
Posts: 2
Joined: November 14th, 2016, 8:00 pm

SD-Card reading

Post by lordnaickol »

Hi there,

I'm trying to read the total and available space on the SD Card inserted on my Toshiba Laptop, but until now I was unable to perform it.

does anybody know how can it be done?

Thanks in advance.
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: SD-Card reading

Post by balala »

The following two measures will do what you want:

Code: Select all

[MeasureTotalDiskSpace]
Measure=FreeDiskSpace
Drive=#Drive#
Total=1
IgnoreRemovable=0

[MeasureFreeDiskSpace]
Measure=FreeDiskSpace
Drive=#Drive#
IgnoreRemovable=0
Add to the [Variables] section, into the Drive variable, the letter of your SD Card.
Note the most important option on both measures: IgnoreRemovable=0. If you don't add this, according to the default value of this option, the SD card is ignored.
lordnaickol
Posts: 2
Joined: November 14th, 2016, 8:00 pm

Re: SD-Card reading

Post by lordnaickol »

Thankyou very much! It works perfectly!
User avatar
balala
Rainmeter Sage
Posts: 16168
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: SD-Card reading

Post by balala »

I'm glad.