Edit the path to the file or folder: каталог программы\save
How to make it so that if the path каталог программы\save in Edit, then when you press the button, a message is displayed - "Обрабатывать файлы в указанной папке запрещено" . "Обрабатывать файлы в указанной папке запрещено" The save folder is always located near the exe program itself.
I assume that you need to prescribe something like this or maybe wrong?: ExtractFilePath(Application.ExeName)
How to do it with the word I already figured out:
const NoValid = 'save'; if Pos(Edit1.Text, NoValid) <> 0 then begin ShowMessage('Обрабатывать в файлы в указанной папке запрещено'); Exit; end;