Advertisement
Guest User

Program2

a guest
Apr 14th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.50 KB | None | 0 0
  1. @echo off
  2. cls
  3.  
  4. :: output path
  5. echo PATH:
  6. echo %PATH%
  7. pause
  8. cls
  9.  
  10. :: show fiu.edu IP address
  11. echo FIU IP address
  12. nslookup fiu.edu | findstr /v "Server:" | findstr /v "Address:"
  13. pause
  14. cls
  15.  
  16. :: show the active connections
  17. echo Showing active connections
  18. netstat -a
  19. pause
  20. cls
  21.  
  22. :: show the route to google.com
  23. echo Showing server route to www.google.com
  24. tracert www.google.com
  25. pause
  26. cls
  27.  
  28. :: The IP address of the current computer.
  29. echo My current IP address
  30. ipconfig | find "IPv4"
  31. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement