I want to know how I could add a condition in a batch file to not overwrite always all files every time I transfer the files from one FTP server to another. Here is my code:
open rs68.lyon.fr.sopra
dbaq60
sopra*
cd "path file to transfer"
prompt
bin
mget *
disconnect
quit
So all I want to do is to test:
- If a file exists already in target directory, then don't copy it .
- If file does not exist in target directory, then copy it.