I created a bat file that calls up a VB script that checks whether a a specific server service is up or not. The script also sends an email to us on whether it's up or not.
This is in my bat file = CSCRIPT monitor.vbs LOCALHOST "server service"
The bat and VB script runs fine. No errors and i get the emails generated. However I can't seem to get the bat file to work with task scheduler at all.
No emails are being generated. It should even when the service is running. I thought maybe it was my bat file causing problems. I removed the bat file and just tried to use task scheduler to open a notepad. I hit run in task scheduler and the 'history' shows that it did but I did not see notepad open up at all.
I don't care about note pad not working but i do need my bat file to run. what am I missing?