Dos
IP Search
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
Ping Test
@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
Another User
runas /user:foo
Acknowledgments
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!
Daiphys Technologies LLC - https://www.daiphys.com/