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 [2019/05/22 12:47] – gerardorourke | tech-notes:scripts:ping [2024/03/11 11:34] (current) – [Bulk Ping] gerardorourke | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ======PING Scripts====== | ======PING Scripts====== | ||
| - | ** ** | + | ===== Bulk Ping ===== |
| <file cmd PING-Addresses.bat> | <file cmd PING-Addresses.bat> | ||
| Line 8: | Line 8: | ||
| 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 22: | Line 23: | ||
| 192.168.1.4 | 192.168.1.4 | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Ping test ==== | ||
| + | |||
| + | <file cmd start-ping-test.cmd> | ||
| + | start " | ||
| + | start " | ||
| + | </ | ||
| + | |||
| + | <file cmd stop-ping-test.cmd> | ||
| + | taskkill /F /FI " | ||
| + | </ | ||
| + | |||