How to run multiple Prep Command Line interface (CLI) or tableau-prep-cli.bat calls with another batch file?
This information is helpful if you have many flows that need to be run with the Prep Command Line interface (tableau-prep-cli.bat), one by one, and you want to add them to the Windows Task Scheduler within the same batch file. The following example will not work since the job is finished after the first "tableau-prep-cli.bat" has completed.
multi_flows.bat
"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_1.tfl"
"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_2.tfl"
"C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_3.tfl"
When running the Prep Command Line interface (tableau-prep-cli.bat) with another batch file, use the call command for continuous execution.
Here is an example batch file:
multi_flows.bat
call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_1.tfl"
call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_2.tfl"
call "C:\Program Files\Tableau\Tableau Prep Builder <version>\scripts\tableau-prep-cli.bat" -c "d:\myflow\PrepConnect.json" -t "d:\myflow\my_test_flow_3.tfl"
001463671

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.