Search found 1 match

by Abhi
07 Apr 2014 06:17
Forum: DOS Batch Forum
Topic: Batch file for telnet output to .txt file
Replies: 2
Views: 6809

Batch file for telnet output to .txt file

Hi, I am trying to create a batch file , that show me the result on txt file for port available/ not available using telnet ... @echo off telnet 192.168.0.173 9091 if !%errorlevel%==! goto error1 ELSE ( goto error2) :error1 echo TELNET_Success >> D:\host1_%date%.txt :error2 echo TELNET_fail >> D:\ho...