Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ErwinMars on August 08, 2009, 08:40:35 pm

Title: How to handle a PAUSE in a pre/post build file
Post by: ErwinMars on August 08, 2009, 08:40:35 pm
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
Title: Re: How to handle a PAUSE in a pre/post build file
Post by: Jenna on August 08, 2009, 08:47:40 pm
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.
Title: Re: How to handle a PAUSE in a pre/post build file
Post by: ErwinMars on August 08, 2009, 09:09:30 pm
Thanks, i didn't see the Abort button.
Title: Re: How to handle a PAUSE in a pre/post build file
Post by: Jenna on August 08, 2009, 09:18:00 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.