You have any tips for the Telnet portion Richard?

So far in my testing the errorcode level is the same if it can or can not connect to the remote server. So for now I'm using PING for the connection test, but want/need to use telnet for the test. Not sure how to complete a connection and send it a quit command and then check the errorlevel code.