I have this code which copies from one location to another. Is there a method to add a date \ time to the file name. In the folder, there's only one csv file which the name changes once in a while. What I've found is that it doesn't copy the file if there's already a file with the same name. It would be nice to copy the .csv and add a date \ time somehow.
Robocopy "D:\BACnet-CSV\Temp" "D:\BACnet-CSV\Test csv files\Test1" *.csv /njh /njs /ts /np /ns /log+:D:\BACnet-CSV\Copy_Log.txt
echo Robocopy exit: %ERRORLEVEL% %DATE% %TIME% >>D:\BACnet-CSV\Copy_Log.txt
Looked for solutions on the web and tried couple of things without success.