@echo off
chcp 65001 >nul 2>&1

:: 检查管理员权限
net session >nul 2>&1
if %errorLevel% neq 0 (
    echo 请求管理员权限...
    PowerShell -Command "Start-Process '%0' -Verb RunAs"
    exit /b
)

:: 打开 CF 优选网站（后台静默打开）
start "" "https://www.wetest.vip/page/cloudflare/address_v4.html"

:: 静默打开 hosts 文件并立即退出 CMD
start "" notepad "%windir%\System32\drivers\etc\hosts"
exit