..status of external program..

BlitzMax Forums/BlitzMax Programming/..status of external program..

Naughty Alien(Posted 2014) [#1]
Hi guys. Forgive me if im asking something obvious, as, its some time since I used bmax. So, I want to know when external program, called from within bmax, is ended. How should I do that?


GW(Posted 2014) [#2]
working from memory here..

There is the 'System_' command, it will block bmax until the sub process is finished. Then there is pub.FreeProcess. it will allow you to capture the forked programs output and doesn't block bmax. I believe it has some methods to check the status of called program.


Kryzon(Posted 2014) [#3]
SebHoll illustrates how to use FreeProcess here:

http://www.blitzbasic.com/Community/posts.php?topic=68847#769756

Basically, you're after the Status method of a TProcess object, which tells if it's still running.


Naughty Alien(Posted 2014) [#4]
..thank you guys, very very much..