Yep that did it for me to generate a date for my logfile.
Thank you for you tip! :-)@echo off
@For /F "tokens=2,3,4 delims=/ " %%A in ('Date /t') do @(
/log=E:\Log\%Logfile% /ini=nul ^
WinSCP can do this on its own, without that huge (and unreliable) batch file construct: