Monday, 11 August 2014

How to Create Batch File to Ping Multiple IPs at the Same Time in Different and Same CMD Windows With Log Auto Log


HOW TO PING Multi SERVERS ON NETWORK WITH in different Window of Command Prompt  Via 1 Batch File.

Create a Bat File and Past the code blow in to the file and save as PING.BAT and Enjoy.

@echo off
:LOOPSTART

start cmd /k Ping 192.168.1.11 -n 10

start cmd /k Ping 192.168.0.81 -n 10

start cmd /k Ping 192.168.0.83 -n 10

start cmd /k Ping 192.168.0.169 -n 10

start cmd /k Ping 192.168.0.30 -n 10

start cmd /k Ping 192.168.0.1 -n 10






  HOW TO PING Multi SERVERS ON NETWORK WITH in Single Window of Command Prompt Via 1 Bat File and Create a Log File of Ping Result.

Create a Bat File and Past the code blow in to the file and save as PING.BAT and Enjoy. 
@ECHO
:LOOPSTART
time /T >> Pinglog.txt
ping  192.168.0.81 -n 4 >> Pinglog.txt
ping  192.168.0.169 -n 4 >> Pinglog.txt
ping  192.168.0.1  -n 4 >> Pinglog.txt
ping  192.168.1.11  -n 4 >> Pinglog.txt
ping  192.168.1.153  -n 4 >> Pinglog.txt
ping  192.168.0.83  -n 4 >> Pinglog.txt
pause

0 comments:

Post a Comment