Не пойму в чём проблема.... хочу осуществить замену текста в определённом каталоге у определённой группы файлов (по маске), но почему то функция которую я написал, не хочет этого делать
Код:

#include <File.au3>
_ReplaceTextInFiles(@ScriptDir & "\Test", "123", "321", "*.txt")
Func _ReplaceTextInFiles($Path, $OldText, $NewText, $Mask="*.*")
$FileList = _FileListToArray($Path, $Mask)
If IsArray($FileList) Then
For $i = 1 to $FileList[0]
_ReplaceStringInFile($Path & "\" & $FileList[$i], $OldText, $NewText)
Next
EndIf
EndFunc
Всё, нашёл свою ошибку

- См. подчёркнуты текст в коде - Там было
$NewText.