Posted: 2010-12-17 22:48
The return value is probably as it should be - I just fail to understand why.
My computer is Windows Server 2003 X64
My version of WinSCP is 4.2.9
When I use the command option in WinScp I would expect the return value to be 1 if just one of the commands are invalid. It doens't seem to be the case however.
Below is a (extremely) simple example:
C:\winscp429>WinSCP.exe /console /command "sds" "exit"
The first command is invalid, but still winScp returns 0 - can someone please explain why.
How can I be sure my dynamic scripting worked as planed?
I get the same result in a more advanced case where I connect to a sftp site with an invalid privatekey.
Location: Prague, Czechia
You need to use winscp.com instead of .exe.
Posted: 2010-12-18 22:47
I thought .exe with /console was the same as .com
Now it works
You can post new topics in this forum
And it's free!