Batch file - loop ping - output to file hosts that are up

后端 未结 2 2008
猫巷女王i
猫巷女王i 2021-01-13 20:21

I would like to make a .bat file that will do a for loop like below:

@echo off
FOR /L %%G IN (1, 1, 69) DO (
    ping -n 1 192.168.%%G.3 
    ping -n 1 192.1         


        
2条回答
  •  时光说笑
    2021-01-13 20:43

    @echo off
    :A
    FOR /L %%G IN (1, 1, 69) DO (
        ping -n 1 192.168.%%G.3 
        ping -n 1 192.168.%%G.4
    )
    :GoTo
    

提交回复
热议问题