I'm trying to create a batch file that reports an error when pscp get
a bad return code. the following produces an error because the
password is wrong, but you never see the echo command run:

c:\pscp\pscp -pw xxx C:\scptest\*.* user@192.168.1.15:transfers/
incoming/
if errorlevel 1 then echo there was an error
:exit

If you put this in a batch file and execute it, it just hangs at
Access Denied until you ctrl-Break it.