using "mv" to transfer files. Force overwrite of dest files
I am using a bat file to call winscp.exe using /script switch.
my script contains the command mv to move files from one remote folder to another remote folder on the same server.
mv works fine UNLESS
a) the destination files already exist in which case the equiv source files are not moved.
1. Is there any way when using the mv command to force the target files to always be overwritten so the source files are always "moved"?
I have tried adding the /nopreserve type switches to the mv commandline but without success.
Example commandlines from my script below for reference
cd /Mysourcefolder/Data
mv "*.*" /MyTargetfolder/Data/*.*
Regards