kimiraikkonen
Tue Mar 11 11:31:34 CDT 2008
On Mar 11, 6:06=A0pm, Scott McNair
<smcn...@beachexpress.takethispartout.com> wrote:
> Hi,
>
> I've got two applications. =A0The job of the second application is to make=
> sure that the first application is running; if it's not, it relaunches it.=
>
> Is there a good code snippet that somebody can point me to that would
> accomplish this?
>
> Regards,
> Scott
Scott,
I would suggest you an extraordinary method that should work for you:
With the code in that site, get an array of current processes that are
running in background (and of course your process) then add their
names into an array-compatible control like listbox.
http://www.devx.com/vb2themax/Tip/18728
Then query your application's entity by:
If lstProcesses.items.contains(.....) =3D false Then
system.diagnostics.process.start("<yourapplication.exe>")
Else
' ... More code here
End if
Hope this helps.