Advertisement
robyhr

Untitled

May 17th, 2023
2,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ECHO OFF
  2. CLS
  3.  
  4. :MENU
  5. ECHO.
  6. ECHO  0 - SHOW IP
  7. ECHO.
  8. ECHO 10 - LAN DHCP client
  9. ECHO 11 - LAN 192.168.1.10/24 (192.168.1.1)
  10. ECHO 12 - LAN 192.168.0.10/24 (192.168.0.1)
  11. ECHO.
  12. ECHO 20 - WLAN DHCP client
  13. ECHO 21 - WLAN 192.168.1.10/24 (192.168.1.1)
  14. ECHO 22 - WLAN 192.168.0.10/24 (192.168.0.1)
  15. ECHO.
  16. ECHO 30 - PING 192.168.1.1
  17. ECHO 31 - PING 10.80.12.1
  18. ECHO 32 - PING 8.8.8.8
  19. ECHO.
  20. ECHO 40 - PING -t 192.168.1.1
  21. ECHO.
  22. ECHO  9 - EXIT
  23. ECHO.
  24.  
  25. SET /P M=Odaberi:
  26. IF %M%==9 GOTO :EOF
  27. GOTO %M%
  28.  
  29. :0
  30. CLS
  31. netsh interface ipv4 show address
  32. GOTO MENU
  33.  
  34. :10
  35. CLS
  36. netsh interface ipv4 set address "LAN" dhcp
  37. GOTO MENU
  38.  
  39. :11
  40. CLS
  41. netsh interface ipv4 set address "LAN" static 192.168.1.10 255.255.255.0 192.168.1.1
  42. GOTO MENU
  43.  
  44. :12
  45. CLS
  46. netsh interface ipv4 set address "LAN" static 192.168.0.10 255.255.255.0 192.168.0.1
  47. GOTO MENU
  48.  
  49. :20
  50. CLS
  51. netsh interface ipv4 set address "WIFI" dhcp
  52. GOTO MENU
  53.  
  54. :21
  55. CLS
  56. netsh interface ipv4 set address "WIFI" static 192.168.1.10 255.255.255.0 192.168.1.1
  57. GOTO MENU
  58.  
  59. :22
  60. CLS
  61. netsh interface ipv4 set address "WIFI" static 192.168.0.10 255.255.255.0 192.168.0.1
  62. GOTO MENU
  63.  
  64. :30
  65. CLS
  66. ping -n 1 192.168.1.1
  67. GOTO MENU
  68.  
  69. :31
  70. CLS
  71. ping -n 1 10.80.12.1
  72. GOTO MENU
  73.  
  74. :32
  75. CLS
  76. ping -n 1 8.8.8.8
  77. GOTO MENU
  78.  
  79. :40
  80. CLS
  81. ping -t 192.168.1.1
  82. GOTO MENU
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement