Mark,
thanks for your reply.
I found the following code:
'---------
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("calc")
Do While oExec.Status = 0
WScript.Sleep 100
Loop
WScript.Echo oExec.Status
'---------
I replaced the "WScript.Echo" with "Msgbox", since HTA does not seem to like
WScript things.
However I do not get the "WScript.Sleep 100" to work. WScript thingy again.
I tried "iTimerID = window.setInterval("RunScript", 5000, "VBScript")" to no
avail.
Any hints?
Dramklukkel
"Mark D. MacLachlan" wrote:
Quote:
> Dramklukkel wrote:
> Quote:
> > Good day everone,
> >
> > I'm writing a HTA that will run several cmd-files. However, certain
> > cmd I will not allowed to run at the same time. E.g. n03.cmd must be
> > finished before n08.cmd is allowed to be launched.
> > How can this be achieved?
> >
> > Dramklukkel
>
> Use the WSHShell.Exec method instead or WSHShell.Run. This will let
> you check for process completion.
>
> http://msdn.microsoft.com/en-us/libr...4a(VS.85).aspx
>
> Hope that helps.
>
> Regards,
>
> Mark D. MacLachlan
>
>
> --
>
>