So Beispielsweise:
$asPath[0][0] -> Anzahl der Elemente
$asPath[n][0] -> Name der Sektion
$asPath[n][1] -> Der Pfad in der Sektion
Spoiler anzeigen
#include <Array.au3>
[/autoit] [autoit][/autoit] [autoit]Global $asPath[1][2] ;// Array für die Pfade deklaieren
Global $sINI = 'xyz.ini' ;// Pfad der INI
Global $asReadSN = IniReadSectionNames($sINI)
Global $iOne, $asReadS, $iTwo
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]; ++++++++++ +++++++++ ++++++++ +++++++ +++++ ++++ +++ ++ +
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]For $iOne = 1 To $asReadSN[0]
ConsoleWrite(@CRLF & $asReadSN[$iOne] & @CRLF)
$asReadS = IniReadSection($sINI, $asReadSN[$iOne])
For $iTwo = 1 To $asReadS[0][0]
ConsoleWrite(' ' & $asReadS[$iTwo][0] & ' = ' & $asReadS[$iTwo][1] & @CRLF)
If $asReadS[$iTwo][0] = 'Path' Then ;// Hier nach "Path" suchen...
ReDim $asPath[UBound($asPath) +1][2]
$asPath[0][0] += 1
$asPath[$asPath[0][0]][0] = $asReadSN[$iOne]
$asPath[$asPath[0][0]][1] = $asReadS[$iTwo][1]
EndIf
Next
Next
ConsoleWrite(@CRLF)
_ArrayDisplay($asPath)