Is there a way to have os_shellexecute wait until the control returns before the script continues?
I need it to launch a second script and then wait until the script is finishes and closes.
Thanks
Sandy
Printable View
Is there a way to have os_shellexecute wait until the control returns before the script continues?
I need it to launch a second script and then wait until the script is finishes and closes.
Thanks
Sandy
Hi Sandy,
sorry but isn't possible using the OS_ShellExecute().
May be you should try to use the OS_Shell() function http://www.thinbasic.com/public/prod...tml/index.html with the %OS_SHELL_SYNC mode.
Ciao,
Roberto
Hi Sandy,
maybe better to use OS_SHELL in this case, like in following:
[code=thinbasic]
OS_Shell("notepad.exe myFile.txt", %OS_WNDSTYLE_NORMAL, %OS_SHELL_SYNC )
[/code]
Last equate says we want to run in synchronuously, so script will wait for end of launched process.
Petr
EDIT: Roberto was faster :D