Author Topic: How to handle a PAUSE in a pre/post build file  (Read 4713 times)

Offline ErwinMars

  • Single posting newcomer
  • *
  • Posts: 7
How to handle a PAUSE in a pre/post build file
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: How to handle a PAUSE in a pre/post build file
« Reply #1 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.
« Last Edit: August 08, 2009, 08:50:35 pm by jens »

Offline ErwinMars

  • Single posting newcomer
  • *
  • Posts: 7
Re: How to handle a PAUSE in a pre/post build file
« Reply #2 on: August 08, 2009, 09:09:30 pm »
Thanks, i didn't see the Abort button.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: How to handle a PAUSE in a pre/post build file
« Reply #3 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.