User forums > Using Code::Blocks
How to handle a PAUSE in a pre/post build file
(1/1)
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:
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:
Thanks, i didn't see the Abort button.
Jenna:
--- Quote from: ErwinMars on August 08, 2009, 09:09:30 pm ---Thanks, i didn't see the Abort button.
--- End quote ---
It's the red button with the white cross in the compiler toolbar.
Alternatively you can try to click "Abort" in the "Build"-menu.
Navigation
[0] Message Index
Go to full version