Created
July 12, 2019 19:26
-
-
Save ptcmariano/76e6290fb4b2f066522d6a97a8c2517d to your computer and use it in GitHub Desktop.
set ip for developer env hosts on windows 10 by bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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