Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. @echo off if exist C:toolscomputers.txt goto Label1 echo. echo Cannot find C:toolscomputers.txt echo. Pause goto :eof
  2.  
  3. :Label1 echo PingTest executed on %date% at %time% > C:toolsz.txt echo ================================================= >> C:toolsz.txt for /f %%i in (C:toolscomputers.txt) do call :Sub %%i notepad C:toolsz.txt goto :eof
  4.  
  5. :Sub echo Testing %1 set state=alive ping -n 1 %1 | find /i "bytes=" || set state=dead echo %1 is %state% >> C:toolsz.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement