+ Start a Discussion

DataLoader CLI - Run multiple dataloader commands in one batch file

Ive been trying to run multiple data loader commands in one batch file. The batch file has the following commands.


When I run each line one by one, everything works. However, I want to script this so that all the lines run one after another. The first one executes but then terminates after successful completion so it doesnt even try to run the remaing two lines. Any suggestions?


- Big A


cd "C:\Program Files (x86)\salesforce.com\Apex Data Loader 21.0\bin\"
process.bat "E:/Data/Dataloader/SFDCExtract" csvAccountExtract
process.bat "E:/Data/Dataloader/SFDCExtract" csvOpportunityExtract
process.bat "E:/Data/Dataloader/SFDCExtract" csvSalesOrderExtract


You should Prefix each line with the "Call" function, like this:


cd "C:\Program Files (x86)\salesforce.com\Apex Data Loader 21.0\bin\"
call process.bat "E:/Data/Dataloader/SFDCExtract" csvAccountExtract
call process.bat "E:/Data/Dataloader/SFDCExtract" csvOpportunityExtract
call process.bat "E:/Data/Dataloader/SFDCExtract" csvSalesOrderExtract



Check out the last paragraph on P.6 of the cheatsheet for an example: