473,405 Members | 2,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Keep software running

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.

Jan 17 '06 #1
7 1241
<cb****@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/>
Jan 17 '06 #2
<cb****@duclaw.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.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..
Jan 17 '06 #3
Quite simple. Thank you.

Jan 17 '06 #4
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.

Jan 17 '06 #5
<cb****@duclaw.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.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..
Jan 17 '06 #6
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.
<cb****@duclaw.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.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.

Jan 17 '06 #7
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
Jan 18 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Lisa | last post by:
I have a drop down that defaults to "select" after the page refreshes. How do I keep the selected value in the dropdown field... I've tried EVERYTHING and nothing works! :( <script...
5
by: Richard Lionheart | last post by:
Hi All, When I create a Console app in VS.net and run it, the Console window opens briefly and closes. If I was running a .bat command file, I'd append a pause stmt at the end. What can I do...
54
by: Matt | last post by:
How do we define systems programs? when we say systems programming, does it necessary mean that the programs we write need to interact with hardware directly? For example, OS, compiler, kernel,...
7
by: Clement | last post by:
hi, i have an asp.net site and is using SQL Server 2k. i realize the aspnet_wp.exe memory usage keep growing and i will receive an error for the pages that call the sql connection. others page...
5
by: Lars-Erik Aabech | last post by:
Hi! Guess it's my day again.. Tried to deploy a test release of a new asp.net web today, and got a terrible error. The web is running swell on three development computers, but when it's copied...
14
by: William LaMartin | last post by:
If I have a Windows application with no form--only a module that starts with sub main and which has a system timer, in the elapsed event of which I want to run some code, how can I keep this...
7
by: mail747097 | last post by:
I would like to keep IIS alive on my web site and prevent Application_End from occuring in global.asax. Any ideas?
3
by: sophie_newbie | last post by:
Hi, I have a cgi script that performs a very long computation that can take several hours to complete. Is there any smart way that I can keep this script running until it is finished (after the...
6
by: Guillermo | last post by:
Hi, I need a script to keep running in the background after it's loaded some data. It will make this data available to the main program in the form of a dictionary, but I don't want to reload...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.