Jens:
CodeBlocksIde.exe is Custom build of codeblocks 10.05 release.
I don't know how to run script in script console. I googled, but didn't see any doc about this. Could you please refer some to me?
As MortenMacFly said, this return value 1 is return code of post-build script. It is shown in build log of codeblocks, but I didn't read it carefully.
the last 2 line of build log
----------------------------------------------------------------------
Process terminated with status 1 (0 minutes, 45 seconds)
0 errors, 18 warnings
----------------------------------------------------------------------
Thank you guys for your sincere help!