saviine/server/dump.bat
Bauxite d053be5d05 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.
2017-03-08 10:58:21 -05:00

6 lines
164 B
Batchfile

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