@joebigelow / wix / commits / 1580bf87

Found a way to get the hostname. Not sure if it's ideal, but it works..

Found a way to get the hostname. Not sure if it's ideal, but it works.. Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>

Bevan Weiss committed Jun 23, 2024 at 22:50 UTC 1580bf87f719ddb164f7cb776ff64892f41fc747
1 file changed +4 -1
src/test/sandbox/runtest_menu.bat
+4 -1
@@ -16,6 +16,9 @@ for /f "tokens=2 delims=[]" %%a in ('ping -n 1 -4 ""') do set IPAddr=%%a
16 set "MsVsMonPath=C:\sandbox\Debugger\x64\msvsmon.exe /noauth /anyuser /nosecuritywarn"
17 )
18 )
19 +FOR /F "tokens=* USEBACKQ" %%F IN (`powershell -Command "[System.Net.Dns]::GetHostEntry('localhost').HostName"`) DO (
20 +SET "Hostname=%%F"
21 +)
22
23 :TestSelect
24 cls
@@ -24,7 +27,7 @@ REM Show the test select menu
27 REM We start with an entry for the Debugger if available
28 set index=0
29 if not "%MsVsMonPath%"=="" (
27 - echo [!index!] Run Remote Debugger [SandboxIP=%IPAddr%]
30 + echo [!index!] Run Remote Debugger [IP=%IPAddr%] [Hostname=%Hostname%]
31 set "option[!index!]=%MsVsMonPath%"
32 )
33