Forum Discussion
Windows Scheduled Task does not run
I created a task under folder \DandyLabs called "DandyLabsBlogEntryRetriever". This task runs a batch file "dandylabsblogentryretriever.bat":
ECHO Running DandyLabsBlogEntryRetriever..
CD C:\path\to\batch
"C:\Program Files\Java\jdk-14.0.1\bin\java" -cp ".;../jar/commons-io-2.11.0.jar;../jar/mysql-connector-java-8.0.19.jar" com.dandylabs.DandyLabsBlogEntryRetriever && (
(call)
) || (
(PAUSE)
)
I then created a scheduled task to automatically run this .bat file at a given time, to run whether I am logged in or not, and to make up to 3 attempts to run, timing out after 30 minutes.
The .bat script runs just fine if run manually; the scheduled task will run if you click "Run" and will run just fine, but when it is scheduled to run, nothing happens. The history just says "Task registered" and goes no further; no errors nor warnings are given.
I don't know what to do at this point. I am using Windows 10 if that helps.
Does anyone have any idea what I may have done wrong to cause this to happen?
Please advise, thanks