System: Win 7 32-bit Spanish.
Version: just downloaded, 5.1.2.
"c:\Archivos de programa\WinSCP\WinSCP.com" /script=x.txt > x.log
Script x.txt contains:
option echo on
option transfer binary
option reconnecttime 5
synchronize remote -delete -mirror -criteria=both c:\data www/data
WinSCP successfully outputs all the usual lines to x.log, including the question "Password:". After I type the password and press Enter, it crashes immediately with no more output.
I have used the same command under Win XP for some years, and it worked (actually I used | mtee /+ x.log, but in my new Win 7 install it does not work either). I don't know how to see the version number I have there on my old Win XP that does work.