Add network IP to output when running batch files

This method of obtaining the local network IP should work on all versions of Windows from XP on.
This commit is contained in:
Bauxite 2017-03-08 11:02:27 -05:00 committed by GitHub
parent d053be5d05
commit ea36195f65

View File

@ -1 +1,4 @@
echo off
for /f "delims=[] tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set NetworkIP=%%a
echo Network IP: %NetworkIP%
saviine_server.exe inject