I want to test quickly if a PC or a web-server is up and running using telnet on port 80. I've been around for 1 hour until now and came up with the above script that still doesn't work. Is anyone experienced in batch programming to help me? the execution stop after telnet because once getting on telnet it doesn't enter the 2 other commands, + I think that the telnet need 2 sequential press enter key to run that still i don't know how to do it
:abc
@echo off
echo =================================================
SET /P txt=domainin:
SET /P var=Porten:
telnet %txt% %var%
echo GET / HTTP/1.1
echo HOST: %txt%
pause
GOTO:abc