Skip to content

Instantly share code, notes, and snippets.

View gusg21's full-sized avatar
🥨
college

Angus Goucher gusg21

🥨
college
View GitHub Profile
@gusg21
gusg21 / routerip+.bat
Created December 28, 2016 15:55
A better version of routerip.bat, a bit heavier, but with support for IPV6 and a help menu for arguments.
:: 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
@gusg21
gusg21 / routerip.bat
Created December 28, 2016 15:38
A command line tool to detect and optionally open the IPV4 address of your router.
:: 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?"
@gusg21
gusg21 / eggnog.bat
Last active December 16, 2016 00:58
Eggnog Argument Parser
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