As already said, in Options for project, Compiler commands, just check (on)"Build" in (on)"Execute after", and paste your command line in order to call your *.bat file. For information (under Linux anyway) the script cannot be interactive e.g. "read sResponse; case "$sResponse ...\...". I'm using one, just to copy and paste the compiled *.elf into a kind of "files server directory" (could be a "CGI-bin directory"). And the last script's echo cmd should\will be displayed at the end\after of the compilation, in the Lazarus IDE itself.