I have been using command line data loader quite a long time but many times we wanted to rename the processed file by adding the current data and time and move it to a different location.
Here is the script for it
IF “%HR0%”==” ” SET HR=0%TIME:~1,1%
ren ..\csv\myFile.csv myFile_%MYDATE%.csv
move ..\csv\myFile_%MYDATE%.csv ..\csv\processed\myFile_%MYDATE%.csv
ren command is used to rename the file with current date time where as move command is used to move the file to a new folder
Note: ..\ means this is a relative location, or else you can even hard code the entire path 🙂