Home All Groups Group Topic Archive Search About

Keep software running

Author
17 Jan 2006 5:55 PM
cbrown
I am looking for a method (maybe even a commercially available piece of
software) to watch a program and ensure that it is always running.  If
it is killed in task manager, it will automatically start it up again,
etc, etc.

Author
17 Jan 2006 6:11 PM
Herfried K. Wagner [MVP]
<cbr***@duclaw.com> schrieb:
>I am looking for a method (maybe even a commercially available piece of
> software) to watch a program and ensure that it is always running.  If
> it is killed in task manager, it will automatically start it up again,
> etc, etc.

\\\
Do
    Dim p As Process = Process.Start("C:\foo.exe")
    p.WaitForExit();
Loop While True
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
17 Jan 2006 6:23 PM
cbrown
Quite simple.  Thank you.
Author
17 Jan 2006 6:21 PM
Ken Halter
<cbr***@duclaw.com> wrote in message
news:1137520501.004924.45660@o13g2000cwo.googlegroups.com...
>I am looking for a method (maybe even a commercially available piece of
> software) to watch a program and ensure that it is always running.  If
> it is killed in task manager, it will automatically start it up again,
> etc, etc.

Yeah... I had some spyware that did exactly that. Basically, a "helper" app
monitored the list of processes and the Run registry key. If that junk
spyware was removed from either place, that helper would re-create the reg
entry and restart the spyware... Plus, the spyware monitored the helper app
so it was protected in the same way.... argghhhh. Getting rid of the whole
mess took a while and if you add this functionality to your app, hopefully,
you'll be kind enough to warn people about it. At least, that way they can
say "Nah... not for me" or "Cool.. glad its protected".

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
17 Jan 2006 6:29 PM
cbrown
Actually its for a Magnetic Card reading application where users only
have access to reboot the system, which would be a pain if the reader
crashed for any reason.  So I need to monitor it to keep it running.

I am with you on the spyware though.  Waste of programming and talent.
Author
17 Jan 2006 8:16 PM
Ken Halter
<cbr***@duclaw.com> wrote in message
news:1137522570.353772.266650@z14g2000cwz.googlegroups.com...
> Actually its for a Magnetic Card reading application where users only
> have access to reboot the system, which would be a pain if the reader
> crashed for any reason.  So I need to monitor it to keep it running.
>
> I am with you on the spyware though.  Waste of programming and talent.
>

Boy... you're right about that <g> One of the worst messes I've seen at here
work was on the owners PC (figures... it's just a web enabled type-writer to
him)... what it did was change the registry association for exe's to some
invalid setting. Needless to say, no exe's would run... not even Windows.
That was a barrel of laughs to fix (without losing data), I tell ya'

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
18 Jan 2006 9:50 AM
Cor Ligthert [MVP]
Ken,

Actually I have helped this week somebody to get rid of that.

I saw that virus/trojan for the first time, it is awful.

While it is pointing to existing websites.

I don't understand why those owners of those websites are not prosecuted.

Cor
Author
17 Jan 2006 10:35 PM
gregory_may
If you don't want to build an app, I think you can do some of this if your
watching a service.... check out the "recovery" tab in service manager.


<cbr***@duclaw.com> wrote in message
Show quoteHide quote
news:1137520501.004924.45660@o13g2000cwo.googlegroups.com...
>I am looking for a method (maybe even a commercially available piece of
> software) to watch a program and ensure that it is always running.  If
> it is killed in task manager, it will automatically start it up again,
> etc, etc.
>