Page 1 of 1

runprogram and wait_program

Posted: Tue Sep 07, 2010 3:54 pm
by sartic
I am trying to run few my external app from my test app.
Using Runprogram and flag wait_program but... pb doesn't wait for end of each app.
I am stumbled. I saw WaitProgram but it is not working.
Even start /wait app.exe (from xp shell doesn't work grrr )

Re: runprogram and wait_program

Posted: Tue Sep 07, 2010 4:57 pm
by cas
It works fine here. I get debug output only when i close application.

Code: Select all

RunProgram("calc.exe","","",#PB_Program_Wait)
Debug "end"

Re: runprogram and wait_program

Posted: Tue Sep 07, 2010 5:37 pm
by sartic
cas wrote:It works fine here. I get debug output only when i close application.

Code: Select all

RunProgram("calc.exe","","",#PB_Program_Wait)
Debug "end"
5min later, i figure out. I was using some kind of exe packer. I compiled again my external apps. Now Program_wait works.
My guess is that every program that use some kind of loader maybe it fail width "wait" option.

I will test commands like ProgramRunning now, thx 4 listening :)