+ Start a Discussion
fe_aldenfe_alden 

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?

Thanks

- Big A

 

c:
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

NashaNasha

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

 

c:
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:

http://www.developerforce.com/media/Cheatsheet_Setting_Up_Automated_Data_Loader_9_0.pdf