runprogram and wait_program

Windows specific forum
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

runprogram and wait_program

Post 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 )
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: runprogram and wait_program

Post 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"
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

Re: runprogram and wait_program

Post 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 :)
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
Post Reply