From 1580bf87f719ddb164f7cb776ff64892f41fc747 Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Sun, 23 Jun 2024 22:50:17 +1000 Subject: Found a way to get the hostname. Not sure if it's ideal, but it works.. Signed-off-by: Bevan Weiss --- src/test/sandbox/runtest_menu.bat | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/sandbox/runtest_menu.bat b/src/test/sandbox/runtest_menu.bat index dbddff2e..fc6ad93e 100644 --- a/src/test/sandbox/runtest_menu.bat +++ b/src/test/sandbox/runtest_menu.bat @@ -16,6 +16,9 @@ for /f "tokens=2 delims=[]" %%a in ('ping -n 1 -4 ""') do set IPAddr=%%a set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn" ) ) +FOR /F "tokens=* USEBACKQ" %%F IN (`powershell -Command "[System.Net.Dns]::GetHostEntry('localhost').HostName"`) DO ( +SET "Hostname=%%F" +) :TestSelect cls @@ -24,7 +27,7 @@ REM Show the test select menu REM We start with an entry for the Debugger if available set index=0 if not "%MsVsMonPath%"=="" ( - echo [!index!] Run Remote Debugger [SandboxIP=%IPAddr%] + echo [!index!] Run Remote Debugger [IP=%IPAddr%] [Hostname=%Hostname%] set "option[!index!]=%MsVsMonPath%" ) -- cgit v1.2.3-55-g6feb