i wanna to copy some file after lazarus compiled my project, like Build event in visual studio, I found the similar option in Lazarus:
but when I press ctrl+f9 to compie, will thrown error:
Executing command after missing executable ""
As I read the documentation, you are expected to provide an executable command. A .bat file is not executable which would explain why your command fails.
Prepend your command with cmd.exe /c
to provide the executable which processes the .bat file.
cmd.exe /c "G:\Lazarus project\dll test\copy.bat"