@echo off
chcp 936 >nul
title AutoDrive Lite

net session >nul 2>&1
if errorlevel 1 (
    powershell -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
    exit /b
)

cd /d "%~dp0"
powershell -ExecutionPolicy Bypass -NoProfile -File "%~dp0run.ps1"

echo.
echo Script finished, press any key to close window...
pause >nul
