a guest Oct 7th, 2012 1,889 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ::network-address.bat
  2. ::script para configurar endereço IP,Máscara, Gateway e DNS via CMD (terminal do Windows).
  3. ::@autor: Reginaldo
  4. set /P ip= "Endereço IP: "
  5. set /P mask= "Máscara: "
  6. set /P gw= "Gateway: "
  7. set /P dns1= "DNS 1: "
  8. set /P dns2=" DNS 2: "
  9. netsh int ip set address name="Conexão Local" source=static %ip% %mask% %gw% 1
  10. netsh int ip set dns "Conexão Local" static %dns1%
  11. netsh int ip set dns "Conexão Local" static %dns2% index=2
  13. echo "IP: " %ip%
  14. echo "Mask: " %mask%
  15. echo "Gw: " %gw%
  16. echo "DNS1: " %dns1%
  17. echo "DNS2: " %dns2%
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand