Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<pre><code>@ECHO OFF ipconfig /all | findstr Ethernet | findstr IP Address | find str ( the first digit of your ip normally " 1 " ) &gt; IP.txt ipconfig /all | findstr Ethernet | findstr Subnet | find str ( the first digit of your subnet normally " 2 " ) &gt; SUBNET.txt ipconfig /all | findstr Ethernet | findstr Primary DNS | find str ( the first digit of your dns normally " 1 " ) &gt; dns1.txt ipconfig /all | findstr Ethernet | findstr Secondary DNS | find str ( the first digit of your dns normally " 1 " ) &gt; .txt ipconfig /all | findstr Ethernet | findstr Default Gateway | find str ( the first digit of your gateway normally " 1 " ) &gt; gateway.txt ipconfig /all | findstr Ethernet | findstr ISP | find str ( the first digit of your ISP normally " 1 " ) &gt; home.txt set ip=for /f "delims= " in ( IP.txt ) do ( set varip=IP.txt ) set sm=for /f "delims= " in ( SUBNET.txt ) do ( set varip=SUBNET.txt ) set gw=for /f "delims= " in ( gateway.txt ) do ( set varip=gateway.txt ) set dns1=for /f "delims= " in ( dns1.txt ) do ( set varip=dns1.txt ) set dns2=for /f "delims= " in ( dns2.txt ) do ( set varip=dns2.txt ) set home=for /f "delims= " in ( home.txt ) do ( set varip=home.txt ) ECHO Setting IP Address and Subnet Mask netsh int ip set address name = "Local Area Connection" source = static addr = %varip% mask = %varsm% ECHO Setting Gateway netsh int ip set address name = "Local Area Connection" gateway = %vargw% gwmetric = 1 ECHO Setting Primary DNS netsh int ip set dns name = "Local Area Connection" source = static addr = %vardns1% ECHO Setting Secondary DNS netsh int ip add dns name = "Local Area Connection" addr = %vardns2% pause </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload