|
Post by stefano on Sept 7, 2018 10:59:36 GMT
In most applications it's required to run an external program and wait for its termination before proceeding. The JustBasic "run" statement, instead, does not seem to have a way for waiting. What's the suggested way to achieve "run a program and wait until completed" ?
|
|
|
Post by Rod on Sept 8, 2018 14:36:56 GMT
This requires API work which is out of scope for Just BASIC. ShellExecute is the topic to research on Liberty BASIC forums.
|
|
|
Post by cundo on Sept 8, 2018 17:17:52 GMT
In most applications it's required to run an external program and wait for its termination before proceeding. The JustBasic "run" statement, instead, does not seem to have a way for waiting. What's the suggested way to achieve "run a program and wait until completed" ? Hello Stefano, is that other "external program" written in JB?
|
|
|
Post by stefano on Sept 11, 2018 21:14:24 GMT
In most applications it's required to run an external program and wait for its termination before proceeding. The JustBasic "run" statement, instead, does not seem to have a way for waiting. What's the suggested way to achieve "run a program and wait until completed" ? Hello Stefano, is that other "external program" written in JB? I would need to run any external executable Windows program. What's missing is just a way to wait for synchronous termination of the spawned process. I suppose it's already possible with Liberty Basic since you can call Win32 API DLL functions. Anyway, a solution could be (in some cases) to stay in a loop until some file has been created by the spawned program. p.s. would it be easier if the "external program" is written in JB as you mentioned ?
|
|
|
Post by cundo on Sept 11, 2018 22:56:28 GMT
See this This comes from the Wiki, tsh added it
|
|
|
Post by stefano on Sept 12, 2018 7:54:58 GMT
See this This comes from the Wiki, tsh added it
|
|
|
Post by stefano on Sept 12, 2018 7:56:36 GMT
Thanks. Good to know, even if it seems not an official feature.
|
|
|
Post by zzz000abc on Nov 1, 2018 11:04:44 GMT
See this This comes from the Wiki, tsh added it good question better explanation thank you all
|
|