$text = 'C:\xxx\hh\hhhh\hhh\image.JPG'
$out = StringRegExp($text,'.*\\(.*)\\',1) Return the last folder hhh. I would use this expression in the cycle below. Local $aArray = _FileListToArrayRec("C:\test\app", "*app.exe", $FLTAR_FILES, 1, $FLTAR_SORT,$FLTAR_FULLPATH)
$fileArray = UBound($aArray) -...