You need to sign in to do that
Don't have an account?

Dynamic file names for Data loader CLI exported data
I would like to export the account data periodically using CLI data loader and generate the export file names dynamically with export time stamps.Eg:- If i am running the export @28-Mar-2016 , file should be "AccountExport28-Mar-2016" .
You may consider to rename the file after expoted using batch file.
Thanks.
I tried for it, but i could not do it. Please let me know how to achieve the same.Please share me if you have any snippets.
d:
cd D:\Data\Salesforce\DataFiles
ren csvfile.csv csvfile_%date:~-4,4%%date:~-7,2%%date:~-10,2%.csv
This is sample command how to rename your csv file. You may change the command as your format.
Thanks.
The command-line version runs with whatever properties you have in your config.properties file, but you can also pass paramters at runtime as arguments to the program.
For example, the following command sets the operation to insert regardless of what settings are contained in the config.properties file:
I would recommend extending (or creating another) process.bat file to support these parameters, instead of hard-coding it in process.bat. To do so, open process.bat and find this line
and add %3% at the end like this
Then when running process.bat add the parameter(s) in quotes