I just upgraded to the newest version of WinSCP (WinSCP Version 5.5.3 (Build 4214)) and am now getting the following warning:
Opening session using command-line parameter in scripting is deprecated. Use 'open' command instead.
When I went there I noticed the following information:
Before opening session using command-line parameter in scripting, warning is printed, that this is deprecated function.
My setup is as follows:
1) I have a batch file that has the following inside of it:
"C:\Program Files (x86)\WinSCP\winscp.com" /script="C:\Users\kevin\Desktop\Utils\winscpbatchfile.txt" /log=C:\Users\Kevin\Desktop\Utils\FreeNASSyncLogs\FreeNAS-%date:~-4,4%-%date:~4,2%-%date:~-7,2%-%time:~0,2%-%time:~3,2%-%time:~6,2%-%time:~9,2%.log
open sftp://usernameremoved:passwordremoved@freenas option batch continue option transfer binary option confirm off
lcd "C:\Users\kevin\Documents" cd /mnt/share/kevin/users/kevin/Documents synchronize remote -mirror -delete -nopreservetime -filemask=|"*.tmp; C:\Users\kevin\Documents\My Music\; C:\Users\kevin\Documents\My Pictures\; C:\Users\kevin\Documents\My Videos\;"
Or this page:
Obviously I missed something in your documentation. Can you please provide a clue for the clueless here?