if statement for "Connection refused"
Hello, i want to sent an error e-mail only when connection is refused. How do i catch this, is there a error level or code to catch it?
If a file fails transferring, i don't want to send an e-mail.
It seems errorcode 1 is wider then what i want.
batch:
log of connection refused:
If a file fails transferring, i don't want to send an e-mail.
It seems errorcode 1 is wider then what i want.
batch:
:nietwinxp echo nietwinxp winscp.com /script=buo-nietwinxp.txt if errorlevel 1 goto error goto end
log of connection refused:
. 2011-01-31 14:43:51.468 Looking up host "backuponline.webboy.nl" . 2011-01-31 14:43:51.473 Connecting to 195.241.102.8 port 22 . 2011-01-31 14:43:53.581 Server unexpectedly closed network connection * 2011-01-31 14:43:53.585 (ESshFatal) Server verbrak onverwacht de netwerkverbinding.