Skip to content

Instantly share code, notes, and snippets.

@ptcmariano
Created July 12, 2019 19:26
Show Gist options
  • Save ptcmariano/76e6290fb4b2f066522d6a97a8c2517d to your computer and use it in GitHub Desktop.
Save ptcmariano/76e6290fb4b2f066522d6a97a8c2517d to your computer and use it in GitHub Desktop.
set ip for developer env hosts on windows 10 by bat
SET /p IPDEV="Enter ip for dev.domain.io: "
SET ADDRBASE= dev.domain.io
SET ADDRESSDEV=%IPDEV%%ADDRBASE%
echo %ADDRESSDEV% > "C:\Windows\System32\drivers\etc\hosts"
pause
type "C:\Windows\System32\drivers\etc\hosts"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment