Run Batch File With Windows Command-Line Interface
For automated batch operations, such as nightly scheduled loads and extractions, run Data Loader from the Windows command-line.
To run Data Loader from a configured Windows batch file:
The Data Loader command-line interface is supported for Windows only.
-
Include your encrypted password in the configuration file to run a batch operation. For more information, see Data Loader Command Line Introduction and Encrypt from the Command Line.
-
Use the process-conf.xml file to configure batch file processing. Specify the name of the process in the
ProcessRunnerbean’sidattribute.For example,
-
Navigate to the Data Loader \bin directory by entering this command. Replace the file path with the path from your system.
C:\Users{userName}\dataloader_version_\bin
-
To run the batch file, use the correct command syntax for
process.bat:where:
<configdir>(mandatory) The absolute or relative path to the directory containing process-conf.xml. It must be the first parameter when runningprocess.bat.<batch process bean id>(optional) The id of the batch process bean ofclass com.salesforce.dataloader.process.ProcessRunnerdefined in the process-conf.xmlfile. If not provided, then the value of theprocess.nameproperty in the config.properties file is used.
To execute Data Loader in batch mode, we’ll use the beans, their properties and attributes specified for a ProcessRunner bean with id="accountInsert" in the process-conf.xml file located in C:\Users\username\dataloaderconfig directory.
If you experience login issues in the command-line interface after upgrading Data Loader, try encrypting your password again to solve the problem.