Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Ping Test Bat  (Read 13839 times)

0 Members and 1 Guest are viewing this topic.

Lemonilla



    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Ping Test Bat
« Reply #30 on: February 29, 2012, 02:22:15 PM »
Wrote this up and tested it, worked on win7.
Sorry for it looking so ugly, but try it out.

Code: [Select]
@echo off
title =Ping Tester
:Menu
color 07
cls
echo 1 Perform a self Ping Test
echo 2 Enter a IP to Ping
echo 3 Exit
echo.
set /p ans=
cls

if "%ans%"=="1" ping 127.0.0.1
if "%ans%"=="1" pause
if "%ans%"=="1" goto Menu


if "%ans%"=="2" set /p ip=IP:
if "%ans%"=="2" ping %ip%
if "%ans%"=="2" pause
if "%ans%"=="2" goto Menu

if "%ans%"=="3" exit

color 0c
cls
echo ERROR
echo.
echo please imput a number 1-3
pause
goto menu
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.