..status of external program..
BlitzMax Forums/BlitzMax Programming/..status of external program..
| ||
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? |
| ||
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. |
| ||
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. |
| ||
..thank you guys, very very much.. |