Results 1 to 4 of 4

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered 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

  2. #2
    Registered User entium's Avatar
    Join Date: May:2003
    Location:
    Posts: 1,426

    Talking

    @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

  3. #3
    Registered 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

  4. #4
    Registered User entium's Avatar
    Join Date: May:2003
    Location:
    Posts: 1,426
    bsb: /L
    EP43-DS3|E5200@3.33|ASUS EN9800GT HB /HTDI/ 512MB|2X2GB 800MHZ CL5 A-DATA|WD2500JB|NEC 4750A|BELINEA 1980S2

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |