Hallo,
anbei erstmal der Code:
$Plugins = IniReadSection(@ScriptDir & "\settings.ini", "plugins")
For $i = 1 To UBound($Plugins) -1
$PluginPath = $Plugins[$i][1]
$Name = IniRead('"'&$PluginPath&'"', "plugin", "Name", "Name")
$Version = IniRead($PluginPath, "plugin", "Version", "Version")
$Author = IniRead($PluginPath, "plugin", "Author", "Autor")
$Date = IniRead($PluginPath, "plugin", "Date", "Datum")
$Path = IniRead($PluginPath, "plugin", "Main", "Hauptpfad")
$Details = $Name & "|" & $Version & "|" & $Author & "|" & $Date & "|" & $Path
GUICtrlCreateListViewItem($Details, $PluginListView)
Next
Alles anzeigen
Der Pfad der INIs wird definitiv gefunden (getestet durch: MsgBox(0, "Pfad", $PluginPath) und stimmt auch), aber aus irgendeinem Grund funktioniert das auslesen nicht. Der Pfad der INI-Datei lautet c:\Users\****\Olfibits Software Project\Projects\Olfibits [Desktop Workstation Plugins]\Beispielplugin\plugin.ini und wird auch korrekt ausgegeben. Aber der Inhalt:
[plugin]
Name="Beispielplugin"
Version="1.0"
Author="******************** (Olfibits)"
Date="08.04.2017"
Main="Plugin.exe"
wird nicht ausgelesen. Weiß jemand den Fehler? Ach ja, die Ausgabe bei der MsgBox-Funktion lautet:
Titel: Pfad
Inhalt: "C:\Users\****\Olfibits Software Project\Projects\Olfibits [Desktop Workstation Plugins]\Beispielplugin\plugin.ini"
-> stimmt also. Warum liest er mir das nicht aus?
Danke olfibits
BTW: die Plugin funktion brauche ich für meine Arbeitsoberfläche