It is currently April 27th, 2024, 7:21 am

Folder Size Help - Same Info for Different Folders

Get help with creating, editing & fixing problems with skins
samstar
Posts: 2
Joined: March 29th, 2011, 7:27 pm

Folder Size Help - Same Info for Different Folders

Post by samstar »

Image

- Each of the folders is its own separate config.

- When I refresh the folders will temporarily show the correct size but within a few seconds they update and all show the same size.

- I need help on how I could make it so it shows the correct folder size.

Code for the 'Documents' File

Code: Select all

[Rainmeter]
Update=6000

[Metadata]
Name=Places Launcher
Config=
Description=
Instructions=
Version=1.0
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]

Path=FileListPlugin.dll

Place1=Documents
Place1Path=C:\Users\sam\Documents
Place1Icon=Documents.png

------------
[Path1]
Measure=Plugin
Plugin=#Path#
Field=FolderPath
FolderIndex=0
Path=#Place1Path#
Recursive=1

[FolderSize1]
Measure=Plugin
Plugin=#Path#
Field=FolderSizeStr
FolderIndex=0
Format=Dynamic

[FileCount1]
Measure=Plugin
Plugin=#Path#
Field=FileCountStr
------------
[Icon1]
Meter=IMAGE
X=5
Y=0
ImageName=#Place1Icon#
LeftMouseDownAction=!Execute ["#Place1Path#"]

-------------

[place1Nametag]
Meter=STRING
X=55
Y=3
FontColor=255, 255, 255, 255
StringStyle=Bold
Fontsize=9
StringAlign=Left
Fontface=Segoe UI
StringEffect=Shadow
AntiAlias=1
Text=#Place1#

[place1Size]
Meter=STRING
MeasureName=FolderSize1
X=r
Y=13r
FontColor=255, 255, 255, 240
StringStyle=Bold
Fontsize=8
StringAlign=Left
Fontface=Helvetica
StringEffect=SHADOW
FontEffectColor=0,0,0,50
AntiAlias=1
Text= " %1B"

[Items]
Meter=STRING
MeasureName=FileCount1
X=r
Y=12r
FontColor=255, 255, 255, 240
StringStyle=Bold
Fontsize=8
StringAlign=Left
Fontface=Helvetica
StringEffect=SHADOW
FontEffectColor=0,0,0,50
AntiAlias=1
Text= " %1 items"
Someone told me to change 'Place1' to 'Place2,3,4' etc for the different files. I've tried this and it didn't do anything.

Anyone able to help?
User avatar
Waldensamkeit
Posts: 83
Joined: March 15th, 2011, 12:39 pm
Location: Hamilton, New Jersey

Re: Folder Size Help - Same Info for Different Folders

Post by Waldensamkeit »

In the variables section where you define
Place1Path=C/users/etc
Place1Icon...=Documents.png

You also need to add a new path= for EACH directory and image

Place1Path=someplace
Place1Icon=someimage
place2Path=anotherplace
Place2Icon=anotherimage

and so on and so forth for each directory you want to show

Then in the path measures, I believe you will need a new measure for each path

Code: Select all

[Path1]
Measure=Plugin
Plugin=#Path#
Field=FolderPath
FolderIndex=0
Path=#Place1Path#
Recursive=1

For the next directory you would need to basically cpy the first but change the path to match...

Code: Select all

[Path1]
Measure=Plugin
Plugin=#Path#
Field=FolderPath
FolderIndex=0
Path=#Place2Path#
Recursive=1
For each directory you want to show, you will need a matching measure and meter for as many directories as you want listed.

The way it is now the directories listed are all referring to the same folder.
I hope this makes sense, I am fairly new as well but I am pretty sure this is how I did it. on my way out so I cant really get into my ini's ATM.

Good luck
samstar
Posts: 2
Joined: March 29th, 2011, 7:27 pm

Re: Folder Size Help - Same Info for Different Folders

Post by samstar »

Thanks so much for your well thought out reply/help.

I tried to do what you said but I believe ive done it wrong as now instead of showing the folder sizes it shows 0b.

I'll keep trying.

EDIT: Put all of them into one .ini file and did what you said.

Working great :) THANKS
User avatar
Waldensamkeit
Posts: 83
Joined: March 15th, 2011, 12:39 pm
Location: Hamilton, New Jersey

Re: Folder Size Help - Same Info for Different Folders

Post by Waldensamkeit »

GREAT! I'm glad you worked it out. It takes a little bit to get used to but once things start to click, its really not that hard at all to get what you want