@echo off
chcp 65001 >nul
title Flash Timer AutoStart Setup

set STARTUP=%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup
set PS1=%~dp0watch_lol.ps1
set VBS=%STARTUP%\lol_flash_timer_watcher.vbs

(
  echo Set ws = CreateObject^("WScript.Shell"^)
  echo ws.Run "powershell -ExecutionPolicy Bypass -WindowStyle Hidden -File ""%PS1%""", 0, False
) > "%VBS%"

echo Done: %VBS%
pause
