News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to handle a PAUSE in a pre/post build file

Started by ErwinMars, August 08, 2009, 08:40:35 PM

Previous topic - Next topic

ErwinMars

I'm using some bat files in my projects. Sometimes, i forgot to remove the pause from the bat file and if i use the bat than in codeblocks, codeblock hangs and i need to use task manager to end it. But in that case, all the files are not saved.

How can such a PAUSE event handled in CodeBlocks? Is there a special key to press?

Thanks in advance

Erwin

Jenna

#1
I just tried it on my virtual w2k-box.

It's no problem to stop build-process by pressing the abort-button, neither in pre-, nor in post-build.

Edit:
It also works to kill the cmd.exe which is spawned by C::B and not the whole C::B-process.

ErwinMars


Jenna

Quote from: ErwinMars on August 08, 2009, 09:09:30 PM
Thanks, i didn't see the Abort button.

It's the red button with the white cross in the compiler toolbar.
Alternatively you can try to click "Abort" in the "Build"-menu.