#include #include #include AutoItSetOption("MouseCoordMode", 0) Local $LOCATON = InputBox("Locaton of Folders", "test", "D:\Round_Loading") Local $FOLDERS = _FileListToArrayRec($LOCATON, "*", 2, 1, 1, 2) Local $FINAL[0][$FOLDERS[0]] = [[], []] Local $sFill_FOLDERS = "" Local $sFill_FILES = "" For $FOLDERS_COUNT = 1 To $FOLDERS[0] $sFill_FOLDERS &= $FOLDERS[$FOLDERS_COUNT] & "|" Next $sFill_FOLDERS = StringTrimRight($sFill_FOLDERS, 1) _ArrayAdd($FINAL, $sFill_FOLDERS) For $FILES = 0 To $FOLDERS[0] -1 Local $TEST = _FileListToArrayRec($FINAL[0][$FILES] & "\", "*", 1, 1, 1, 2) For $FILEWRITE = 0 To $TEST[0] $sFill_FILES &= $TEST[$FILEWRITE] & @CRLF Next $sFill_FILES = StringTrimRight($sFill_FILES, 1) _ArrayAdd($FINAL, $sFill_FILES, $FILES) $sFill_FILES = "" Next _ArrayDisplay($FINAL, "FINAL") Exit Func Terminate() Exit EndFunc ;==>Terminate