* -- https://docs.microsoft.com/en-us/previous-versions//d5fk67ky(v=vs.85)
Function RunUsingWSH(lcExe, lcCommandLine) as Integer
Local loWshShell
loWshShell = CreateObject("WScript.Shell")
this.nProcessReturnCode = loWshShell.Run(lcExe + " " + lcCommandLine, 1, .t.) && Wait for result.
Endfunc
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
On Wed, 9 Jun 2021, at 10:33 AM, Chris Davis wrote:
> Hi All
>
> I want to ShellExecute a program repeatedly but not until the previous
> instance has finished, what's the best approach? So I effectively want
> to wait in a loop until the previous instance exits and then run it
> again.
>
> Ideas?
>
> TIA
>
> Chris.
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
> text/plain (text body -- kept)
> text/html
> ---
>
[excessive quoting removed by server]