+ Start a Discussion
BylithiumBylithium 

.bat file to run data loader

I am able to run the data loader from command line. I want to create a .bat file to schedule.

 

thisis the .bat file which I have created but when I am running its throwing errors. I think the process.name is wrong I am putting the bean id="csvMFTVOMData" over there which is also my property name.

 

Can someone help me out with this..

 

@ECHO OFF

 

SET YourDataLoaderDirectory="Y:\salesforce.com\Apex Data Loader 18.0"

SET CONFIGPATH=%YourDataLoaderDirectory%\conf

SET javaCmd=%YourDataLoaderDirectory%\_jvm\bin\java.exe

SET jarFile=%YourDataLoaderDirectory%\DataLoader.jar

 

 

 

%javaCmd% -cp %jarFile% -Dsalesforce.config.dir=%CONFIGPATH% com.salesforce.dataloader.process.ProcessRunner process.name=csvMFTVOMData

 

 

 

@ECHO ON

 

 

 

vswamidassvswamidass

Hi,

You might try CLIq, which is a tool I wrote to solve this problem:

http://code.google.com/p/dataloadercliq/

 

It will create a working .bat file (and .sh for *nix).

 

Vijay