![]() |
|
SPONSORED LINKS BY GOOGLE |
|
2
22nd October 07:59
External User
Posts: 1
|
Telnet has a habit of not returning control to the underlying
command process. This means that you need to kill it forcefully. You can do the whole process (i.e. launch & kill telnet) with this batch file. If you call it something other than d:\test.bat then you must adjust that reference on Line 4 in the batch file. @echo off if not "%1"=="" goto kill set delay=120 start /b /min "Telnet Monitor" d:\test.bat %delay% telnet pegasus 5500 goto :eof :Kill ping localhost -n %1 >nul taskkill /im telnet.exe /f An alternative way is to use NetCat instead of telnet (http://www.securityfocus.com/data/tools/nc11nt.zip). |
|
|
SPONSORED LINKS BY GOOGLE |
|
|