Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @echo off
  2. :: this script will show you a MAC address from a local hostname-IP
  3. title get MAC from hostname or IP
  4. color 1B
  5. echo %date% - %time%
  6. :PREGUNTA
  7. echo Type target hostname-IP from LAN
  8. set /p targetDevice =
  9. :: if "%targetDevice" == "" echo missing hostname or IP | goto PREGUNTA
  10. ping -n 1 %targetDevice%
  11. pause
  12. color
  13. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement