I have a VBScript file set to run on an old Windows XP machine dedicated to run scheduled processes. The script simply calls a URL. It doesn't have to do any any error correction (the web page handles all that). The script looks like this:
Sub SampleProcessor()
On Error Resume Next
Dim objRequest
Dim URL
Set objRequest = CreateObject("Microsoft.XMLHTTP")
URL = "https://www.url.com/Processor.php"
objRequest.Open "POST", URL, False
objRequest.Send
Set objRequest = Nothing
End Sub
Call SampleProcessor()
Now this script is scheduled to run every five minutes, 24 hours a day and has worked flawlessly for years.
I recently had to create a new process similar to this one.
I took the same .vbs file above, renamed it, changed the name of the function and the URL. saved it. put it in as a scheduled process. It will not run. I have verified both scripts are set to run under the same user. The URL works when entering it into a browser window on the same machine. To avoid any possible collision, the old function runs every 5 minutes starting at 7:00 pm and the new one runs every 5 minutes starting at 7:03 pm. Neither script takes more than 20-30 seconds to run typically. When called from the browser, the page produces no errors of any kind and runs correctly to completion every time.