Computeractive

Batch file 6

Jun 21st, 2022 (edited)
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. @echo off
  2. cls
  3. ping -n 1 router >nul
  4. if %errorlevel% == 1 echo Could not reach your router
  5. if %errorlevel% == 0 echo Successfully reached the router
  6. ping -n 1 www.bbc.co.uk >nul
  7. if %errorlevel% == 1 echo Could not reach the BBC
  8. if %errorlevel% == 0 echo Successfully reached the BBC
  9. echo.
  10. pause
  11. exit
  12.  
Add Comment
Please, Sign In to add comment