: ***************************************************************************** : * !PROTECTED SCRIPT! (Copyright 2004, JWC Computer Communications) * : ***************************************************************************** :! :! Pre-Release of Twin/\/\Peaks Command .Alive :! :! Command Line cut and paste - requires NTCmdLib.cmd :! _ or ntlib.cmd Release 20040328 or later. :! :! This pre-release code is for evaluation and testing at the :! _ C:\> prompt ONLY! It will NOT work inside of a script! :! :! STEP 1 - Initialize your Command Library using "NTCmdLib /Init". :! STEP 2 - Paste the ENTIRE LINE BELOW into your console window. :! :! You can then use the .Alive command as shown in the examples :! at (http://TheSystemGuard.com/MtCmds/CrystalClear/Alive.htm). :! (SET ".Alive=(%!IND%Alive (%!CEE%Input variable is undefined. Place your input in variable Alive.&%!S2%%!E%%!FE%%_ IN ('SET Alive^|%!fs%/bi /C:"Alive="') DO @(%!S%(%!pi%-l 1 -n 1 -w 1000 %`|%!fs%/C:" TTL=")&&(ECHO:%` is alive)||(>&2 ECHO:%` is unreachable))))")