Cem,
Если у Вас
всегда путь к файлам
$sImageFile и
$sVideoFile отличается
только названием животного, то можно сделать совсем просто, без всяких файлов-баз:
Код:

Local $s_Animal, $s_ImageFile, $s_VideoFile, $a_Path[2][2] = [[@ScriptDir & '\Files\Image\', '.jpeg'],[@ScriptDir & '\Files\Video\', '.mpeg']]
;~ $a_Path[0][0] - полный путь с обратным слешем в конце к папке с файлами-картинками;
;~ $a_Path[1][1] - расширение файлов-картинок;
;~ $a_Path[1][0] - полный путь с обратным слешем в конце к папке с файлами-видео;
;~ $a_Path[1][1] - расширение файлов-видео.
;~ поменяйте эти пути и расширения на свои.
$s_Animal = InputBox('Название', 'Введите животное:', 'Здесь вводим', '', 250, 150, Default, Default, 0)
If Not $s_Animal Then Exit 1
If FileExists($a_Path[0][0] & $s_Animal & $a_Path[0][1]) Then
$s_ImageFile = $a_Path[0][0] & $s_Animal & $a_Path[0][1]
EndIf
If FileExists($a_Path[1][0] & $s_Animal & $a_Path[1][1]) Then
$s_VideoFile = $a_Path[1][0] & $s_Animal & $a_Path[1][1]
EndIf
If $s_ImageFile Then
ConsoleWrite('Image file for animal "' & $s_Animal & '": ' & $s_ImageFile & @LF)
Else
ConsoleWrite('Can not search image file for animal "' & $s_Animal & '"' & @LF)
EndIf
If $s_VideoFile Then
ConsoleWrite('Video file for animal "' & $s_Animal & '": ' & $s_VideoFile & @LF)
Else
ConsoleWrite('Can not search video file for animal "' & $s_Animal & '"' & @LF)
EndIf