How to Write a Windows Script for Ping Command

If you have any network issue, the first troubleshooting step is Ping a gateway and server of your network if the computer is in private network, if it is in public network than you need to ping any global DNS or online server (Google, Bing or Yahoo)

Steps for how to write Ping Script with screenshots

1. Open notepad

2. Type Ping –t (-t is switch to ping continues till we terminate the command)


3. Save the file in .cmd or .bat extension


4. Execute the windows script file


5. The Command prompt will automatically runs ping command


This is the simple way to make a Ping Script

Video for How to write a simple Ping Script

Steps for how to write Ping Script

Speak Your Mind


+ 3 = five