Hello.
I want a vb program to keep running in the background for checking another exe file, if it is running on not.
If the another EXE file which was running crashes accidentally,
The program should re-lauch the closed exe.
Printable View
Hello.
I want a vb program to keep running in the background for checking another exe file, if it is running on not.
If the another EXE file which was running crashes accidentally,
The program should re-lauch the closed exe.
Is the program that is crashing something you wrote?
If so, it would be much better to stop it from crashing in the first place - by adding apt error handling etc.
I recommend you spend some time reading a couple of articles from our Classic VB FAQs (in the FAQ forum), particularly Why do errors crash my program, and how can I stop that from happening? (making an Error Handler) which will enable you to act on errors appropriately.
It will also let you find out what the errors are, which will enable you to fix the problems with your code. You can find advice on how to do that in the article What does this error mean, and how do I fix it?