From ea36195f65c61175c815f8188e01113dc4ee34d6 Mon Sep 17 00:00:00 2001 From: Bauxite Date: Wed, 8 Mar 2017 11:02:27 -0500 Subject: [PATCH] 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. --- server/inject.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/inject.bat b/server/inject.bat index 3b2b394..22e8d02 100644 --- a/server/inject.bat +++ b/server/inject.bat @@ -1 +1,4 @@ -saviine_server.exe inject \ No newline at end of file +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