Vielleicht so:
AutoIt
#cs
C:\Users\MeineID\AppData\Local\Microsoft\Outlook\meine.mail@gmail.com.ost
D:\Documents\Outlook-Dateien\iCloud Archive.pst
D:\Ordner\Orner1\Ordner2\Outlook-Dateien\iCloud Archive1.pst
F:\Ordner\iCloud Archive2.pst
G:\Ordner\Ordner1\Ordner2\Ordner3\Outlook-Dateien\iCloud Archive3.pst
C:\Users\MeineID\AppData\Local\Microsoft\Outlook\meine.mail1@gmail.com.ost
#ce
#Region zum einlesen des obigen Kommentars
Global $sPath = StringRegExpReplace(FileRead(@ScriptFullPath), '(?s)#cs\v+(.+?)\v+#ce.+', '$1')
Global $aPath = StringSplit($sPath, @CRLF, 3)
#EndRegion zum einlesen des obigen Kommentars
Global $sDir
For $sPath In $aPath
$sDir = StringRegExpReplace($sPath, '(.+\\).+', '$1') ; nur der Pfad (ohne Dateiname und Endung)
ConsoleWrite($sDir & @CR)
Next
Alles anzeigen