Website-Icon .: blog cscholz.io :.

cmd: prüfen welche Rechner online sind

@echo off
del online.txt
FOR /F "tokens=1" %%a IN (computer.txt) DO (
  ping %%a -n 2| find /i "TTL" >NUL
  if errorlevel 1 (
    echo %%a >> offline.txt
  ) else (
    echo %%a >> online.txt
  )
)
computer.txt
computer1
computer2
computer3
[...]
Die mobile Version verlassen