>>As it seems the problem could not be solved, maybe you can try a brute-force approach, either by trapping the COM error and retrying, or testing after the build if the EXE has being generated, and if not, running the copilation again.
>
>If the EXE can't be built, a messagebox will appear. I don't know how to workaround that.
I have a batch process that builds all of our executables (several modules) in unattended mode. As some errors can appear, I just ignore all of them, and generate a log instead for later review.
Before each BUILD command I have:
Keyboard "A" Plain Clear
What this does is to press the "Ignore All" button in the dialog box.
Hope this helps,