Introduction
Hi, I am Akira, the editor-in-chief of Data Without Code. As a DX manager, there is one feeling I absolutely love: waking up in the morning, opening my laptop, and seeing that all my daily reports have already been completed and emailed to my team while I was sleeping.
In our previous tutorial, we learned how to automate Excel reporting and combine multiple sheets. That was a huge step forward. But right now, you still have to open KNIME, load the workflow, and manually click the green “Execute All” button.
What if you didn’t even have to do that? In this guide, I will show you the ultimate automation hack: how to schedule KNIME workflows to run completely automatically using the free KNIME Analytics Platform.
The Secret to Scheduling KNIME for Free
If you work for a large enterprise, they might use the paid “KNIME Business Hub” to schedule workflows on a server. But if you are a beginner, a freelancer, or just trying to prove the ROI of automation on your own computer, you don’t need to spend a dime.
We can achieve this using KNIME Batch Mode and your computer’s built-in Windows Task Scheduler (or Cron on a Mac). Batch mode simply means telling your computer to open KNIME in the background, run a specific workflow, and close it, all via a single line of text.
Step 1: Find Your Paths
To tell your computer what to do, you need two pieces of information: where the KNIME program is installed, and where your workflow is saved.
- KNIME Executable Path: Usually located at
C:\Program Files\KNIME\knime.exe. - Workflow Path: Open your KNIME Workspace folder (which we set up in our installation guide), find the folder with your workflow’s name, and copy the folder path. For example:
C:\Users\YourName\knime-workspace\Monthly_Report.
Step 2: Write the Batch Command
Now, we just combine those paths into a specific command. Open Notepad on your computer and paste the following template:
"C:\Program Files\KNIME\knime.exe" -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir="C:\Users\YourName\knime-workspace\Monthly_Report"
Replace the paths with your actual locations. This line of text looks a bit technical, but as a non-programmer, you don’t need to memorize it. Just copy and paste it! Save this Notepad file to your desktop and name it Run_Report.bat (Make sure to change the extension from .txt to .bat).
If you double-click this .bat file, a black command window will pop up, KNIME will run invisibly in the background, process your data, export your Excel file, and close automatically.
Step 3: Automate with Windows Task Scheduler
We have the trigger; now we just need the timer.
- Open the Start Menu in Windows and search for Task Scheduler.
- Click on Create Basic Task on the right side.
- Name it something like “Weekly KNIME Report”.
- Choose your trigger (e.g., Weekly, every Monday at 6:00 AM).
- Choose the action: Start a program.
- Click “Browse” and select the
Run_Report.batfile you saved on your desktop. - Click Finish.
That’s it! You are officially a DX automation wizard.
Now, every Monday at 6:00 AM, Windows will trigger your batch file, KNIME will run your workflow, process the data, and your report will be ready before you even pour your morning coffee.
Conclusion: Your Next Steps
Scheduling workflows locally is the ultimate proof that you do not need expensive software or a computer science degree to automate business processes. You have now learned how to extract data, clean it, merge it, and schedule the entire pipeline.
Now that you have mastered the basics and the automation hacks, it is time to put everything together to solve real-world business problems.
Are you ready to move from simple reporting to actual business intelligence? Join me in our brand new Use Cases module, where our first project will be building an automated sales data dashboard in KNIME!
