If you right-click a Code::Blocks project/workspace in explorer, you will see

two extensions: "Build" and "Rebuild (clean)" (windows only).

The arguments configured here, are used by those two extensions.

You could specify, for example, a profile/personality to use for batch builds.

The relevant command-line arguments are (all are optional):

-na: don't perform any association checks

-nd: don't start a DDE server

-ns: don't display a splash screen while loading

-p : the profile to use: "ask" or <profile-name>

--target: work only on <target> for "Build" or "Rebuild (clean)"

--no-batch-window-close: do not auto-close log window when batch build is done

--batch-build-notify: show message when batch build is done