```batch
@echo off
rem 检查hosts中是否存在指定的记录
find /i "172.16.5.1 aa.aaaa.com" "%windir%\system32\drivers\etc\hosts" >nul 2>nul
if %errorlevel% equ 0 (
start "" "http://aa.aaaa.com"
) else (
echo 172.16.5.1 aa.aaaa.com>>"%windir%\system32\drivers\etc\hosts"
start "" "http://aa.aaaa.com"
)
pause
```
@echo off
rem 检查hosts中是否存在指定的记录
find /i "172.16.5.1 aa.aaaa.com" "%windir%\system32\drivers\etc\hosts" >nul 2>nul
if %errorlevel% equ 0 (
start "" "http://aa.aaaa.com"
) else (
echo 172.16.5.1 aa.aaaa.com>>"%windir%\system32\drivers\etc\hosts"
start "" "http://aa.aaaa.com"
)
pause
```
