Advertisement
Guest User

Untitled

a guest
May 21st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. @ECHO off
  2. cls
  3. :start
  4. ECHO.
  5. ECHO 1. 10.17.160.253 Chokladhall Winkler Dragé
  6. ECHO 2. 10.17.161.253 Mogul 12 =CF4
  7. ECHO 3. 10.17.162.253 Mogul 13 Glukos Mumsen
  8. ECHO 4. 10.17.163.253 Rowema 1
  9. ECHO 5. 10.17.164.253 Mjöl Bindler Banor Winkler - Bindler
  10. ECHO 6. 192.168.0.253 .NOLLNAT
  11. ECHO 7. 192.168.10.253 .10 NAT
  12. ECHO 8. 10.11.16.253 CITECT MEDIA
  13. ECHO 9. 10.133.32.253 KEX 2 MASKINER
  14. ECHO 0. DHCP
  15. ECHO +. SLÅ IN IP
  16. set choice=
  17. set /p choice=Type the number to print text.
  18. if not '%choice%'=='' set choice=%choice:~0,1%
  19. if '%choice%'=='1' goto con1
  20. if '%choice%'=='2' goto con2
  21. if '%choice%'=='3' goto con3
  22. if '%choice%'=='4' goto con4
  23. if '%choice%'=='5' goto con5
  24. if '%choice%'=='6' goto con6
  25. if '%choice%'=='7' goto con7
  26. if '%choice%'=='8' goto con8
  27. if '%choice%'=='9' goto con9
  28. if '%choice%'=='0' goto autosearch
  29. if '%choice%'=='+' goto con+
  30. ECHO "%choice%" is not valid, try again
  31. ECHO.
  32. goto start
  33.  
  34. :con1
  35. ECHO Chokladhall Winkler Dragé
  36. netsh interface ip set address "RJ45" static 10.17.160.253 255.255.255.0
  37. goto bye
  38.  
  39. :con2
  40. ECHO Mogul 12 =CF4
  41. netsh interface ip set address "RJ45" static 10.17.161.253 255.255.255.0
  42. goto bye
  43.  
  44. :con3
  45. ECHO Mogul 13 Glukos Mumsen
  46. netsh interface ip set address "RJ45" static 10.17.162.253 255.255.255.0
  47. goto bye
  48.  
  49. :con4
  50. ECHO Rowema 1
  51. netsh interface ip set address "RJ45" static 10.17.163.253 255.255.255.0
  52. goto bye
  53.  
  54. :con5
  55. ECHO Mjöl Bindler Banor Winkler - Bindler
  56. netsh interface ip set address "RJ45" static 10.17.164.253 255.255.255.0
  57. goto bye
  58.  
  59. :con6
  60. ECHO NOLLNÄT
  61. netsh interface ip set address "RJ45" static 192.168.0.253 255.255.255.0
  62. goto bye
  63.  
  64. :con7
  65. ECHO 10 NÄT
  66. netsh interface ip set address "RJ45" static 192.168.10.253 255.255.255.0
  67. goto bye
  68.  
  69. :con8
  70. ECHO CITECT MEDIA
  71. netsh interface ip set address "RJ45" static 10.11.16.253 255.255.255.0
  72. goto bye
  73.  
  74. :con9
  75. ECHO K2 MASKINER
  76. netsh interface ip set address "RJ45" static 10.133.32.253 255.255.255.0
  77. goto bye
  78.  
  79. :con+
  80. echo "Please enter Static IP Address Information"
  81. echo "Static IP Address:"
  82. set /p IP_Addr=
  83. netsh interface ip set address "RJ45" static %IP_Addr% 255.255.255.0
  84. goto bye
  85.  
  86.  
  87. :autosearch
  88. ECHO IP via DHCP
  89. netsh int ip set address name = "RJ45" source = dhcp
  90. goto bye
  91.  
  92. :bye
  93.  
  94. pause
  95. goto end
  96.  
  97. :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement