~George Umfanalyflar commented on Aug 2, 2012

Re: Call an external program with Lotusscript and wait for it to finish before continuing with your code

First of all, thanks for sharing this. I tried both possibilities, but the simpler solution does not block the Notes Document from writing input meanwhile the external app is launched. The first solution is working quite stably on 8.5.3 as far as we tested. Just one comment, if you want to bring the external app to front use: Const SW_MINIMIZE = 5. Furthermore I found an article at microsoft, which describes a similar solution: http://msdn.microsoft.com/de-de/library/bb979229.aspx

~Tip Opjipymanli commented on Oct 18, 2010

Call an external program with Lotusscript and wait for it to finish before continuing with your code

This is a much simpler way. The third parameter tells Windows to wait until the process has run (see http://msdn.microsoft.com/en-us/library/d5fk67ky(v=VS.85).aspx)

Set vShell = CreateObject("WScript.Shell")

nRet = vShell.Run(sCommand, 3, True)