Transfer files from remote folder with "mv" command i can't overwrite
Hi,
I am using a bat file to call winscp.exe using /script below .
My script contains the command mv that move files from one remote folder (/BOLLE/temp_000001/) to another remote folder (/BOLLE/) on the same server.
When mv command transfer the files from one to second remote folder and in the destination file/s already exist in which case the equiv source files are not moved.
Is there any way when using the mv command, or other command, to force the target files to always be overwritten so the source files are always "moved"?
option batch continue
option confirm off
option reconnecttime 60
option failonnomatch off
open ftp://xxxxxxx
lcd \xxxxxx\txx
cd /IN
rmdir temp_000001
mkdir temp_000001
cd temp_000001
synchronize remote -filemask="*.ZIP; *.INI|*/" -transfer=binary -delete=off
cd /BOLLE
mv /BOLLE/temp_000001/*.* /BOLLE/
exit
FTP Folder tree details:
/IN
/BOLLE
/BOLLE/temp_000001
Thank you, regards
I am using a bat file to call winscp.exe using /script below .
My script contains the command mv that move files from one remote folder (/BOLLE/temp_000001/) to another remote folder (/BOLLE/) on the same server.
When mv command transfer the files from one to second remote folder and in the destination file/s already exist in which case the equiv source files are not moved.
Is there any way when using the mv command, or other command, to force the target files to always be overwritten so the source files are always "moved"?
option batch continue
option confirm off
option reconnecttime 60
option failonnomatch off
open ftp://xxxxxxx
lcd \xxxxxx\txx
cd /IN
rmdir temp_000001
mkdir temp_000001
cd temp_000001
synchronize remote -filemask="*.ZIP; *.INI|*/" -transfer=binary -delete=off
cd /BOLLE
mv /BOLLE/temp_000001/*.* /BOLLE/
exit
FTP Folder tree details:
/IN
/BOLLE
/BOLLE/temp_000001
Thank you, regards