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 Google.com –t (-t is switch to ping continues till we terminate the command)

clip_image002

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

clip_image004

4. Execute the windows script file

clip_image006

5. The Command prompt will automatically runs ping command

clip_image008

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

*


6 + seven =