---
schema_version: "1"
id: 68b7c437b34984307a09ab3f02ebf7b2ddb4f3ac9704e00e7c13d8a79276f7f1
title: Run Batch File With Windows Command-Line Interface
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/data-loader-impl/guides/data-loader/using-the-command-line-interface.md
canonical_url: https://developer.salesforce.com/docs/platform/data-loader-impl/guide/using-the-command-line-interface.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 704c1e98e1192e838effc39f1d2721c7615aa6209c8a206b38f268c2e115289f
products:
  - Data Loader Guide
  - Platform Developer Content
---

# 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.

## Before You Begin

To run Data Loader from a configured Windows batch file:

**note:** The Data Loader command-line interface is supported for Windows only.

1.  Include your encrypted password in the configuration file to run a batch operation. For more information, see [Data Loader Command Line Introduction](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/command-line-intro.md) and [Encrypt from the Command Line](https://developer.salesforce.com/docs/platform/data-loader-impl/guide/loader-encryption.md).

2.  Use the process-conf.xml file to configure batch file processing. Specify the name of the process in the `ProcessRunner` bean's `id` attribute.

    For example,

    ```nolang
    <bean id="accountInsert" class="com.salesforce.dataloader.process.ProcessRunner" scope="prototype">
    ```

3.  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

4.  To run the batch file, use the correct command syntax for `process.bat`:

    ```nolang
    process.bat <configdir> [<operation>]
    ```

    where:

    -   `<configdir>` (mandatory) The absolute or relative path to the directory containing process-conf.xml. It must be the first parameter when running `process.bat`.
    -   `<batch process bean id>` (optional) The id of the batch process bean of `class com.salesforce.dataloader.process.ProcessRunner` defined in the process-conf.xmlfile. If not provided, then the value of the `process.name` property in the config.properties file is used.

## Running `process.bat` using both parameters

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.

```nolang
process.bat "C:\Users\username\dataloaderconfig" accountInsert

```

## Next Steps

**tip:** If you experience login issues in the command-line interface after upgrading Data Loader, try encrypting your password again to solve the problem.

