@ECHO off cls :start ECHO. ECHO 1. NextDNS ECHO 2. Cloud Flare 1.1.1.1 set /p choice=Type the number to print text. rem if not '%choice%'=='' set choice=%choice:~0;1% (don`t use this command, because it takes only first digit in the case you type more digits. After that for example choice 23455666 is choice 2 and you get "bye" if '%choice%'=='' ECHO "%choice%" is not valid please try again if '%choice%'=='1' goto next if '%choice%'=='2' goto cloudflare ECHO. goto start :next netsh interface ip del dnsservers "Ethernet" 1.1.1.1 netsh interface ip add dnsservers "Ethernet" 45.90.XX.XX netsh interface ip add dnsservers "Ethernet" 45.90.XX.XX ipconfig /flushdns netsh interface ip show dnsservers "Ethernet" goto end :cloudflare netsh interface ip del dnsservers "Ethernet" 45.90.XX.XX netsh interface ip del dnsservers "Ethernet" 45.90.XX.XX netsh interface ip add dnsservers "Ethernet" 1.1.1.1 ipconfig /flushdns netsh interface ip show dnsservers "Ethernet" goto end :end pause exit