Results 1 to 3 of 3

Thread: A Nice Colourful Ping

  1. #1
    Brinh123
    Guest

    A Nice Colourful Ping

    I've put the following into a .cmd file called NEWPING.CMD

    echo off & cls
    :top
    PING -n 1 %1% | FIND "TTL="
    IF ERRORLEVEL 1 (SET OUT=0C & echo Request timed out.) ELSE (SET OUT=0A)
    color %OUT%
    sleep 1
    GoTo top

    I then added the following custom tool:
    c:\windows\NewPing.CMD %HOSTNAME%

    This way you can select a bunch of servers, have a ping window open for each of them that goes green while the server is responding and red when they timeout.

    (Code is a modified version of Albin Sebastian's code that can be found at http://www.binbert.com/blog/2010/09/bat-file-for-continuous-ping-with-backgrou nd-colour-changes/

    [EDIT - Found a typo, code above corrected byt replacing %S% with %HOSTNAME%]

    [This message has been edited by Brinh123 (edited 06-16-2011).]

  2. #2
    Ixne
    Guest
    This may seem obvious to some, but the SLEEP command does not ship
    with WindowsXP; apparently it's available from within the Server 2003 Resource
    Kit.

  3. #3
    connollyr
    Guest
    As each window opens by itself how do you know which server is which?

Similar Threads

  1. Ping Failed
    By tcole in forum Reporting, Exporting, and Printing
    Replies: 3
    Last Post: 01-14-2008, 01:16 PM
  2. Ping
    By jr8fan15 in forum How Do I ... ?
    Replies: 12
    Last Post: 07-11-2006, 10:04 AM
  3. Replies: 3
    Last Post: 06-25-2004, 07:51 AM
  4. Ping, Send, and WOL
    By Les Ligetfalvy in forum Other
    Replies: 4
    Last Post: 03-12-2004, 05:24 AM
  5. Ping - Is it a bug?
    By Jens Kalski in forum Bug Reports
    Replies: 4
    Last Post: 12-11-2003, 06:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •