Skip to content

Commit

Permalink
Found a way to get the hostname.
Browse files Browse the repository at this point in the history
Not sure if it's ideal, but it works..

Signed-off-by: Bevan Weiss <[email protected]>
  • Loading branch information
bevanweiss committed Jun 23, 2024
1 parent be8a192 commit df1cf22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/sandbox/runtest_menu.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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%"
)

Expand Down

0 comments on commit df1cf22

Please sign in to comment.