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
:: File: routerip+.bat | |
:: Author: gusg21 | |
:: | |
:: A command line tool to detect and optionally | |
:: open the ip address of your router. | |
@echo off | |
REM Reset ERRORLEVEL | |
ver > nul |
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
:: File: routerip.bat | |
:: Author: gusg21 | |
:: | |
:: A command line tool to detect and optionally | |
:: open the ip address of your router. | |
@echo off | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set IPv4=%%~a && set IPV6=%%~b | |
echo IPV4: [ %IPV4%] | |
choice /M "Open this page?" |
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
REM EggNog Argument Parser | |
REM by gusg21 | |
REM Reset ERRORLEVEL | |
ver > nul | |
REM Call argument 1 case | |
2>NUL CALL :c_%1 | |
REM If nonexistent call default | |
IF ERRORLEVEL 1 CALL :c_def | |
goto :eof |