Skip to content

Instantly share code, notes, and snippets.

@stuntguy3000
Created July 4, 2014 11:06
Show Gist options
  • Save stuntguy3000/ec0615b9931182dc5d9f to your computer and use it in GitHub Desktop.
Save stuntguy3000/ec0615b9931182dc5d9f to your computer and use it in GitHub Desktop.
@echo off
set line================================================================================
set text= Internal IP Resolver - by stuntguy3000
echo %line%
echo %text%
echo %line%
rem Let the magic begin!
for /f "delims=[] tokens=2" %%a in ('ping %computername% -n 1 -4 ^| findstr "["') do (set thisip=%%a)
echo Your Internal IP is: %thisip%
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment