Topic "No overwrite existing file"

Author Message
Marco61

Guest


Hi

This is my .bat

@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
_____________________________

and this is my .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
_______________________________

I wish the existing files are not overwritten but ignored
Can you help me please?
Thank you very much
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Use synchronize remote -criteria=none instead of put *.*
Marco61

Guest


OK!!
Thank very very much!!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License