@echo off
title Firefly Remote Fix
net session >nul 2>&1
if errorlevel 1 (
  echo.
  echo  *** Please RIGHT-CLICK this file and choose "Run as administrator" ***
  echo  *** 请右键本文件，选择「以管理员身份运行」 ***
  echo.
  pause
  exit /b
)
echo Downloading and running fix...
powershell -NoProfile -ExecutionPolicy Bypass -Command "try{ Invoke-WebRequest 'https://down.yhcqy.cn/softwares/rdfix.ps1' -UseBasicParsing -OutFile \"$env:TEMP\rdfix.ps1\"; & \"$env:TEMP\rdfix.ps1\" }catch{ Write-Host ('ERR: ' + $_) }"
echo.
echo ==============================================
pause
