You can find details about how to run batch in the following link: https://www.knime.com/faq
As a very simple example, I created a workflow that outputted some randomly generated data to a .csv file. I then exported this workflow as a .knwf file and ran it using the following code that I saved as a .bat file:
"C:\Program Files\KNIME\knime.exe" -reset -nosave -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile="C:/temp/CreateCSVFile.knwf"
Where C:\Program Files\KNIME\knime.exe
(with back slashes) is the location of where your KNIME.exe file is stored and C:/temp/CreateCSVFile.knwf
(with forward slashes) is the location of your KNIME workflow.
NOTE: Batch for some reason doesn’t like relative file paths, so either use a Local Path for any reading/writing nodes, or a custom path (eg. KNIME://knime.workflow/./myCSVFile.csv
).
There’s a few other ways to get KNIME to run in Batch mode but this is a reasonable starter for ten.