Cannot redirect WinSCP output
"Console interface for WinSCP has encountered a problem" appears immediately after I type the password when I redirect the output of WinSCP.
System: Win 7 32-bit Spanish.
Version: just downloaded, 5.1.2.
Command:
"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
open sftp://user@site.org
synchronize remote -delete -mirror -criteria=both c:\data www/data
exit
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.
System: Win 7 32-bit Spanish.
Version: just downloaded, 5.1.2.
Command:
"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
open sftp://user@site.org
synchronize remote -delete -mirror -criteria=both c:\data www/data
exit
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.