How to Write a Batch File to Continuously Ping an IP Address
A batch file is a type of text file in Windows that, when double-clicked, runs a series of commands that are placed inside of it. If you want to have a shortcut to quickly and continuously ping a website to verify that it is online or for other similar reasons, you can do so by placing the "ping" command inside of a batch file.
Instructions
-
-
1
Click "Start," type "notepad" and press "Enter" to open the Notepad utility.
-
2
Type "ping -t www.WebsiteToPing.com" inside the text file on a single line, without quotes, where "www.WebsiteToPing.com" is the site you wish to ping.
-
-
3
Click "File" then click "Save," then select "All files" as the "Save as type" option.
-
4
Save the file with the name "pinger.bat" -- the file extension "bat" is the batch file extension.
-
5
Close Notepad and double-click the batch file to run it.
-
1