I'm trying to set up an ftp program and i have it working and copying files, however its always prompts to overwrite. What i want is when this screen prompts a bit of code to automatically say no to all overwrites. Hopefully that makes sense my code is below:
option batch abort
option batch off
put c:\test\*.* /lewis/test/*.* -preservetime
this is the first part of the script saved in a tmp file.
rem WinSCP Server Automated Backup.
rem Created for Quantact.com
rem Server Login
rem Folder Settings.
rem Path to winscp.
rem Execute script
%winscp_path% /script=script.tmp %filelog%
rem Delete temporary script
thats the second part saved as a txt file.
set winscp_path="C:\Program Files\WinSCP\WinSCP.exe"
%winscp_path% /console /script=script.tmp
and that part is saved as a .bat file