Re: No Overwrite with get and Wildcards
@nick.huang: No, the order is first local, then remote:
https://winscp.net/eng/docs/scriptcommand_synchronize
https://winscp.net/eng/docs/scriptcommand_synchronize
synchronize local -criteria=none /dir/*(remote first) C:\ (local second)
synchronize
command are just paths, no file mask:
synchronize local -criteria=none /dir C:\
synchronize local -criteria=none /dir/* C:\
An attempt to browse to the directory «/dir/*\*.*» failed. ("Failed to download the file list from« /dir/*\*.*»,"System error. Code: 3. "," The system cannot find the specified path ")
synchronize remote -criteria=none
instead of put *.*
@echo off
echo --------------------------
echo Trasferimento FTP avviato anno 2009
echo --------------------------
echo INIZIO %date% %time%
echo INIZIO %date% %time% > c:\LogWinscp2009.txt
E:
WinSCP.com /script=C:\uploadscript2009.txt >> c:\LogWinscp2009.txt
echo ---------
echo F I N E
echo ---------
echo FINE %date% %time%
echo FINE %date% %time% >> c:\LogWinscp2009.txt
option echo off
option batch on
option confirm off
open ftp://username:password@ipaddress
cd /prod01_img_HYPERDOC/PROT/2015
lcd "E:\Protocollo\docs\2015"
put *.*
exit