psftp not setting errorlevel

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Running psftp (Putty package) in a batch file under Win/XP with the -b
option (commands in a file), errors seem to terminate psftp without setting
the errorlevel.  Specifically, a cd command to a non-existent directory
fails (as it should), an error message is displayed and the process quits.  
Users running the batch file don't notice the error message, and with no
errorlevel, the batch file doesn't know it should do something to attract
attention.  The return code is zero even if the file of commands is

A bad password does yield an error return of 1, as does psftp -h.

Am I missing anything?

Site Timeline