Something like this: _Example() Func _Example() Local $sIECacheDir = _IE_GetCacheDir() Local $aKatalogi = _FileListToArrayRec($sIECacheDir, 'generatePDF*.pdf', 1, 1, 0, 2) EndFunc Func _IE_GetCacheDir() Local $sIECacheDir = RegRead('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\', 'Cache') $sIECacheDir = StringReplace($sIECacheDir, '%USERPROFILE%', @UserProfileDir) Return SetError(0, 0, $s