Dos

for /l %i in (0, 1, 255) do ping -w 1 -n 1 192.168.0.%i
for /l %i in (0, 1, 255) do ping -w 1 -n 1 192.168.0.%i >> ping.log
for /l %i in (0, 1, 255) do ping -w 1 -n 1 192.168.0.%i && arp -a 192.168.0.%i
for /l %i in (0, 1, 255) do ping -w 1 -n 1 192.168.0.%i && arp -a 192.168.0.%i >> search.log
findstr dynamic search.log
@echo off
@setlocal EnableDelayedExpansion

ping -n 1 192.168.0.1 | find "TTL" > nul 2>&1
if %ERRORLEVEL% equ 0 (
  echo 192.168.0.1 OK
) else (
  echo 192.168.0.1 NG
)

echo.
echo Done.

pause > nul
runas /user:foo

Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2022/12/14 14:46
  • by Daiphys