stream.WriteLine "WinSCP\winscp.exe /console /script="script.txt 2> error.txt"
The script.txt is referecned by my batch file, and the error.txt is the file I want the code 0 or 1 output to.
It looks like you are using .Net, right? Read documentation then.
You can post new topics in this forum