#Include
$folder = D:\test
$FileList = _FileListToArray($folder, "*.exe", 1) ;用数组保存目录下所有exe文件
If @Error = 4 Then ;目录下无exe文件的错误处理
MsgBox(48+262144, "Warning", "EXE file not found!")
Exit
EndIf
For $i = 1 To $FileList[0] ;依次执行目录下的exe文件
Run($folder & "\" & $FileList[$i])
Sleep(1000) ;间隔1秒
Next