If you need something to do before build or after build in Project->Options go on Build events.

In my case I needed to compile resource file to add one exeso for sure is always there (mostly because of CVS and other developers).

Syntax is something like this:

call "res\pdftotext.bat"
if %errorlevel% neq 0 exit %errorlevel%