Results 1 to 4 of 4
Thread: PING batch file ?
Hybrid View
-
1st November 2006 14:25 #1Registered User
Join Date: Oct:2006
Location: Sofia
Posts: 160
PING batch file ?
PING IP- 1 10. :
FOR %%n IN (1 2 3 4 5 6 7 8 9 10) DO ping 192.168.0.%%n
(range of values), 1 254
-
1st November 2006 15:14 #2
@echo off
SET /P count_=[Start Value=]
SET /P target_=[End Value=]
:_loop
ping 192.168.1.%count_%
SET /A count_+=1
if "%count_%"=="%target_%" goto _endloop
goto _loop
:_endloop
set count_=
set target_=
set /A . . NT Windows.Last edited by entium; 1st November 2006 at 16:14.
EP43-DS3|E5200@3.33|ASUS EN9800GT HB /HTDI/ 512MB|2X2GB 800MHZ CL5 A-DATA|WD2500JB|NEC 4750A|BELINEA 1980S2
-
1st November 2006 16:09 #3Registered User
Join Date: Oct:2003
Location:
Posts: 4,317
SET , , .
, FOR - /L:
for /L %%i in (%1,1,%2) do ping -n 1 -w 100 192.168.0.%%i
-
1st November 2006 16:12 #4
bsb: /L
EP43-DS3|E5200@3.33|ASUS EN9800GT HB /HTDI/ 512MB|2X2GB 800MHZ CL5 A-DATA|WD2500JB|NEC 4750A|BELINEA 1980S2




Reply With Quote
R9 280,
7th May 2023, 21:28 in