- martin
winscp.com /command "..." "..." > out.txt
does not work. Any ideas?
winscp.com /command "..." "..." > out.txt
does not work. Any ideas?
This works fine from a command prompt but does not work well from my program (with appropriate escapes for "\") or the Windows "Run" dialog. The Run dialog produces the same results as my program - I get a console window that prompts for a user name, shows some errors, and does not redirect output.
You can only redirect whole session:winscp.com /command "open user@host" "ls" > output.exe
"C:\Program Files\WinSCP3\WinSCP3.com" /script=C:\TEMP\SCR1.tmp > C:\TEMP\SCR2.tmp 2>&1
winscp.com /command "open user@host" "ls" > output.exe