Last active
December 16, 2015 17:19
-
-
Save pcoder/5469338 to your computer and use it in GitHub Desktop.
set static ip4 network configurations
This file contains hidden or 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
:: Called from Notepad++ Run | |
:: [path_to_bat_file] "$(CURRENT_DIRECTORY)" "$(NAME_PART)" | |
:: Change Drive and to File Directory | |
%~d1 | |
cd %1 | |
:: Run Cleanup | |
call:cleanup | |
:: Run pdflatex -> bibtex -> pdflatex -> pdflatex | |
pdflatex %2 | |
bibtex %2 | |
:: If you are using multibib the following will run bibtex on all aux files | |
:: FOR /R . %%G IN (*.aux) DO bibtex %%G | |
pdflatex %2 | |
pdflatex %2 | |
:: Run Cleanup | |
call:cleanup | |
:: Open PDF | |
START "" "C:\Progra~2\SumatraPDF\SumatraPDF.exe" %3 -reuse-instance | |
:: Cleanup Function | |
:cleanup | |
:: del *.dvi | |
:: del *.out | |
:: del *.log | |
:: del *.aux | |
:: del *.bbl | |
:: del *.blg | |
:: del *.brf | |
goto:eof |
This file contains hidden or 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
REM Assuming host address = 192.168.137.176, mask=255.255.255.0, gw=192.168.137.1 metric=1 | |
netsh interface ip set address "Wireless Network Connection" static 192.168.137.176 255.255.255.0 192.168.137.1 1 | |
netsh interface ip delete dns "Wireless Network Connection" all | |
netsh interface ip add dns "Wireless Network Connection" 208.67.222.222 | |
netsh interface ip add dns "Wireless Network Connection" 8.8.8.8 index=2 |
This file contains hidden or 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
netsh interface ip set address name="Wireless Network Connection" source=dhcp | |
netsh interface ip set dns name="Wireless Network Connection" source=dhcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment