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 10:58:21 -05:00 committed by GitHub
parent c06e6ae7f3
commit d053be5d05

View File

@ -1 +1,5 @@
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 dump