@echo off :: Request Admin Rights >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) pushd "%CD%" CD /D "%~dp0" set "DIR=%~dp0" echo Fixing WARP Service to D: Drive... 🛠️ :: 1. Create service if missing, or update path if exists sc.exe create CloudflareWARP binPath= "\"%DIR%warp-svc.exe\"" start= auto obj= "LocalSystem" DisplayName= "Cloudflare WARP Service" >nul 2>&1 sc.exe config CloudflareWARP binPath= "\"%DIR%warp-svc.exe\"" >nul 2>&1 :: 2. Ensure it is running net start CloudflareWARP >nul 2>&1 sc.exe start CloudflareWARP >nul 2>&1 :: 3. Open the UI start "" "%DIR%Cloudflare WARP.exe" exit