batch file with windows task scheduler

Hi. I’m facing a problem with batch file that starts a workflow. When I run the .bat with double click, it works perfectly. But when I schedule with Windows Task Scheduler it starts at the scheduled time but the task stay with running status forever and the workflow is not executed. The code of my .bat is “C:\Users\marco.carminatti\Desktop\KNIME\knime.exe” -consoleLog -reset -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:\Users\marco.carminatti\Desktop\KNIME\Social_Trends” -preferences=“preferences.epf”
exit
Does someone know how to fix this problem?
Thanks in advance

The forum has a handful of other posts over the years describing troubles with using the task scheduler; not that it will necessarily fix your situation, but i’m not sure how the BAT execution will resolve the full path to that relative preferences file.
Does specifying the full path change anything?
If you put in some logging / file touching prior to the knime.exe invocation, does that get executed? (ie. is anything in batch file getting executed?)
You say the workflow is not executed, but does task manager ever show KNIME starting up / running?

1 Like

Hi @quaeler. Thanks for helping! It worked perfectly when I specified the full path of the preferences file.

Thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.