#include <FileOperations.au3>
$sFileList = _FO_FileSearch(@TempDir, '*', True, 125, 1, 0)
If Not @error Then
$hFile = FileOpen(@TempDir & '\file.txt', 2)
FileWrite($hFile, $sFileList)
FileClose($hFile)
If FileExists(@TempDir & '\file.txt') Then
ShellExecute(@TempDir & '\file.txt', "", @TempDir, "open")
EndIf
EndIf