This question is not programming related, but to go around to resolve the problem by batch or vbscript to start/end process.
I have a very old custom application which is not updated anymore. It checks XML file at remote site every 5 minutes. I need to make sure it runs all the time. Recently we have an issue it throws 'Run Time' error.
When I look at the log, it says 'Invalid Argument' then the process throws the error.
Is there a way for any script to contiguously monitor this log and if it encounters 'invalid argument', then it forces to end the process and restart? After the application is restarted, it doesn't require user interaction such as clicking button or any.