One thing in advance: Please excuse my bad English.
Following situation:
2 fixed partitions
- C: - Windows
- D: - Daten
6 network drives
- A: - Austausch
- M: - Management
- P: - Produktion
- T: - TimeLine
- V: - Verwaltung
- Z: - Home
I use a lot of FreeDiskSpace measures. Among other things, for reading the label. Unfortunately, I always get “Daten” back from network drives!
Am I too stupid to use all of this?
Here is an excerpt from my code:
Code: Select all
[Variables]
Drive2 = A:
;BLOCK Drive2
[measureDrive2Title]
Drive= #Drive2#
IgnoreRemovable= 0
Label= 1
Measure= FreeDiskSpace
[measureDrive2Total]
Drive= #Drive2#
DynamicVariables= 1
IgnoreRemovable= 0
Measure= FreeDiskSpace
Substitute= "K":"KB","M":"MB","G":"GB","T":"TB"
Total= 1
IfCondition= ((MeasureDrive2Total = 0) || ([shapeDrive2Click:Y] > (#FestplatteTop# + #FestplatteHeight# - 71)))
IfTrueAction= [!HideMeterGroup "Drive2"][!SetOption shapeDrive2Click Y 0R][!SetOption textDrive2Title Y 0r][!SetOption textDrive2Free Y 0r][!SetOption barDrive2Total Y 0r]
IfFalseAction= [!ShowMeterGroup "Drive2"][!SetOption shapeDrive2Click Y 15R][!SetOption textDrive2Title Y 2r][!SetOption textDrive2Free Y -4R][!SetOption barDrive2Total Y -4R]
[measureDrive2Used]
Drive= #Drive2#
IgnoreRemovable= 0
InvertMeasure= 1
Measure= FreeDiskSpace
Substitute= "K":"KB","M":"MB","G":"GB","T":"TB"
[measureDrive2UsedPercent]
Formula= (MeasureDrive2Total = 0) ? 1 : (MeasureDrive2Used / (MeasureDrive2Total + 0.000001))
Measure= Calc
[measureDrive2Free]
Drive= #Drive2#
InvertMeasure= 0
IgnoreRemovable= 0
Measure= FreeDiskSpace
Substitute= "K":"KB","M":"MB","G":"GB","T":"TB"
[shapeDrive2Click]
DynamicVariables=1
Group= Drive2
Meter= Shape
MyFillColor= Fill Color #BgColorNormal#
Shape= Rectangle 0,0,(#FestplatteWidth# - 10),([barDrive2Total:Y] - [shapeDrive2Click:Y] + [barDrive2Total:H] + 5) | Extend MyFillColor | StrokeWidth 0
X= (#FestplatteLeft# + 5)
Y= 15R
MouseOverAction= [!SetOption shapeDrive2Click MyFillColor "Fill Color #BgColorMO#"][!UpdateMeter shapeDrive2Click][!Redraw]
MouseLeaveAction= [!SetOption shapeDrive2Click MyFillColor "Fill Color #BgColorNormal#"][!UpdateMeter shapeDrive2Click][!Redraw]
LeftMouseDownAction= !Execute ["explorer" "#Drive2#"]
[textDrive2Title]
Group= Drive2
Meter= String
MeterStyle= styleTextTitle
NumOfDecimals= 1
StringAlign= Left
Text= "(#Drive2#)"
X= 5r
Y= 2r
[textDrive2Title2]
DynamicVariables=1
Group= Drive2
MeasureName= MeasureDrive2Title
Meter= String
MeterStyle= styleTextTitle
StringAlign= Left
Text= "%1"
X= 65r
Y= 0r
[textDrive2Free]
AutoScale= 1
DynamicVariables= 1
Group= Drive2
MeasureName= MeasureDrive2Free
Meter= String
MeterStyle= styleTextText
NumOfDecimals= 1
StringAlign= Left
Text= "%1"
X= ([textDrive2Title:X])
Y= -4R
[textDrive2FreiVon]
AutoScale= 1
DynamicVariables= 1
Group= Drive2
Meter= String
MeterStyle= styleTextSubText
NumOfDecimals= 1
StringAlign= CenterCenter
Text= "frei von"
X= (#FestplatteLeft# + (#FestplatteWidth# / 2))
Y= ([textDrive2Free:H] / 2)r
[textDrive2Total]
AutoScale=1
DynamicVariables=1
Group= Drive2
MeasureName= MeasureDrive2Total
Meter= String
MeterStyle= styleTextText
NumOfDecimals= 1
StringAlign= Right
Text= "%1"
X= (#FestplatteLeft# + #FestplatteWidth# - 10)
Y= ([textDrive2Free:Y])
[barDrive2Total]
DynamicVariables=1
Group= Drive2
Meter= Shape
Shape= Rectangle 0,0,(#FestplatteWidth# - 20),10 | Fill Color #BarColorTotal#
UpdateDivider= 1
X= ([textDrive2Title:X])
Y= -4R
[barDrive2Used]
DynamicVariables= 1
Group= Drive2
Meter= Shape
Shape= Rectangle 0,0,((#FestplatteWidth# - 20) * [measureDrive2UsedPercent]),10 | Fill Color #FontColorTitle#
X= 0r
Y= 0r
;BLOCKEND Drive2
Can anybody help me with this please?