Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tech-notes:scripts:ping [2018/05/17 20:05] – ↷ Page moved from code:java:tech-notes:scripts:ping to tech-notes:scripts:ping gerardorourke | tech-notes:scripts:ping [2024/03/11 11:34] (current) – [Bulk Ping] gerardorourke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ** PING-Addresses.bat ** | + | ======PING Scripts====== |
| - | <code> | + | ===== Bulk Ping ===== |
| + | |||
| + | <file cmd PING-Addresses.bat> | ||
| @echo off | @echo off | ||
| :start | :start | ||
| cls | cls | ||
| - | FOR /F %%i IN (IPaddresses.conf) DO ( | + | set mypath=%cd% |
| + | FOR /F %%i IN (%mypath%\IPaddresses.conf) DO ( | ||
| ping %%i -n 1 -w 2000 | find " | ping %%i -n 1 -w 2000 | find " | ||
| ) | ) | ||
| Line 12: | Line 15: | ||
| pause | pause | ||
| goto start | goto start | ||
| - | </code> | + | </file> |
| - | ** IPaddresses.conf | + | <file txt IPaddresses.conf> |
| - | + | ||
| - | <code> | + | |
| 192.168.1.1 | 192.168.1.1 | ||
| 192.168.1.2 | 192.168.1.2 | ||
| 192.168.1.3 | 192.168.1.3 | ||
| 192.168.1.4 | 192.168.1.4 | ||
| - | </code> | + | </file> |
| + | |||
| + | |||
| + | ===== Ping test ==== | ||
| + | |||
| + | <file cmd start-ping-test.cmd> | ||
| + | start " | ||
| + | start " | ||
| + | </ | ||
| + | |||
| + | <file cmd stop-ping-test.cmd> | ||
| + | taskkill /F /FI " | ||
| + | </ | ||