Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO off
- cls
- :start
- ECHO.
- ECHO 1. 10.17.160.253 Chokladhall Winkler Dragé
- ECHO 2. 10.17.161.253 Mogul 12 =CF4
- ECHO 3. 10.17.162.253 Mogul 13 Glukos Mumsen
- ECHO 4. 10.17.163.253 Rowema 1
- ECHO 5. 10.17.164.253 Mjöl Bindler Banor Winkler - Bindler
- ECHO 6. 192.168.0.253 .NOLLNAT
- ECHO 7. 192.168.10.253 .10 NAT
- ECHO 8. 10.11.16.253 CITECT MEDIA
- ECHO 9. 10.133.32.253 KEX 2 MASKINER
- ECHO 0. DHCP
- ECHO +. SLÅ IN IP
- set choice=
- set /p choice=Type the number to print text.
- if not '%choice%'=='' set choice=%choice:~0,1%
- if '%choice%'=='1' goto con1
- if '%choice%'=='2' goto con2
- if '%choice%'=='3' goto con3
- if '%choice%'=='4' goto con4
- if '%choice%'=='5' goto con5
- if '%choice%'=='6' goto con6
- if '%choice%'=='7' goto con7
- if '%choice%'=='8' goto con8
- if '%choice%'=='9' goto con9
- if '%choice%'=='0' goto autosearch
- if '%choice%'=='+' goto con+
- ECHO "%choice%" is not valid, try again
- ECHO.
- goto start
- :con1
- ECHO Chokladhall Winkler Dragé
- netsh interface ip set address "RJ45" static 10.17.160.253 255.255.255.0
- goto bye
- :con2
- ECHO Mogul 12 =CF4
- netsh interface ip set address "RJ45" static 10.17.161.253 255.255.255.0
- goto bye
- :con3
- ECHO Mogul 13 Glukos Mumsen
- netsh interface ip set address "RJ45" static 10.17.162.253 255.255.255.0
- goto bye
- :con4
- ECHO Rowema 1
- netsh interface ip set address "RJ45" static 10.17.163.253 255.255.255.0
- goto bye
- :con5
- ECHO Mjöl Bindler Banor Winkler - Bindler
- netsh interface ip set address "RJ45" static 10.17.164.253 255.255.255.0
- goto bye
- :con6
- ECHO NOLLNÄT
- netsh interface ip set address "RJ45" static 192.168.0.253 255.255.255.0
- goto bye
- :con7
- ECHO 10 NÄT
- netsh interface ip set address "RJ45" static 192.168.10.253 255.255.255.0
- goto bye
- :con8
- ECHO CITECT MEDIA
- netsh interface ip set address "RJ45" static 10.11.16.253 255.255.255.0
- goto bye
- :con9
- ECHO K2 MASKINER
- netsh interface ip set address "RJ45" static 10.133.32.253 255.255.255.0
- goto bye
- :con+
- echo "Please enter Static IP Address Information"
- echo "Static IP Address:"
- set /p IP_Addr=
- netsh interface ip set address "RJ45" static %IP_Addr% 255.255.255.0
- goto bye
- :autosearch
- ECHO IP via DHCP
- netsh int ip set address name = "RJ45" source = dhcp
- goto bye
- :bye
- pause
- goto end
- :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement