"c:\program files\winscp\winscp.com" /script=uploadscript.txt /log=log.txt
option batch on
option confirm on
put -nopreservetime "C:\Twl_Get\rcvdata\*.txt"
option confirm off
option batch off
I can get around this some by using the synchronize command, which will only upload files that are different, however our SFTP server does not support a client making changes to the timestamp, which is why I use the -nopreservetime flag in the PUT.
This flag does not exist for SYCNHRONIZE, and the -nopermissions doesn't stop an error from occuring, so I need to set BATCH CONTINUE.