Re: Using /log and /parameter at the same time not working
::Sends files OK but doesn't create log
WinSCP.com /script="%scriptsdir%\put_files.txt" /parameter // "%dailydir%" /log="C:\LOGFILE_!Y!M!D.log"
That's because of the
//
. It tells WinSCP to treat all following parameters as plain parameters, newer as switches.
Just remove the
//
.
See https://winscp.net/eng/docs/commandline#two_slashes
::Fails to send files or create log
WinSCP.com /script="%scriptsdir%\put_files.txt" /log="C:\LOGFILE_!Y!M!D.log" /parameter // "%dailydir%"
This works for me.