FolderInfo plugin


Plugin=FolderInfo retrieves information about folders.

Note: Measuring a folder with a very large number of folders and files (e.g. C:\Users\YourName\Documents) can cause Rainmeter to have erratic or even unstable behavior.

Options

General measure options
All general measure options are valid.
Folder
Must be either:
  • The path to the folder (e.g. Folder=C:\MyFolder)
  • Or the name of another measure (e.g. Folder=[MainMeasure]). In this case, the folder specified in MainMeasure will be used.

Important: If multiple measures use the same folder, specify the actual path on the first FolderInfo measure and specify the name of the first measure in subsequent measures. See example below for proper usage.
InfoType
Defines the type of information. Valid values are:
  • FileCount: Number of found files.
  • FolderCount: Number of found folders.
  • FolderSize: Size of the folder in bytes.
RegExpFilter
Regular expression used to include or exclude counted files.
IncludeSubFolders Default: 0
If set to 1, subfolders are included.
IncludeHiddenFiles Default: 0
If set to 1, hidden files are included.
IncludeSystemFiles Default: 0
If set to 1, system files are included.

Example

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,255

[MeasureFolder]
Measure=Plugin
Plugin=FolderInfo
Folder=#SKINSPATH#
InfoType=FolderSize
IncludeHiddenFiles=1
IncludeSubFolders=1
IncludeSystemFiles=1
RegExpFilter=.*
UpdateDivider=10

[MeasureFileCount]
Measure=Plugin
Plugin=FolderInfo
Folder=[MeasureFolder]
InfoType=FileCount
UpdateDivider=10

[MeterSize]
Meter=String
MeasureName=MeasureFolder
X=5
Y=5
W=200
H=20
FontColor=255,255,255,255
AutoScale=1
Text="Total Size: %1B"

[MeterCount]
Meter=String
MeasureName=MeasureFileCount
X=5
Y=25
W=200
H=20
FontColor=255,255,255,255
Text="File Count: %1"