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:49] – gerardorourke | tech-notes:scripts:ping [2024/03/11 11:34] (current) – [Bulk Ping] gerardorourke | ||
|---|---|---|---|
| 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 27: | Line 28: | ||
| <file cmd start-ping-test.cmd> | <file cmd start-ping-test.cmd> | ||
| - | start " | ||
| - | start " | ||
| start " | start " | ||
| start " | start " | ||