## --- (bat) wifi auto on-connect script (for windows wifi) #2/2 ---
## -- (python) Script #1/2 here: https://pastebin.com/wcJaa963 --
@echo off
:: --- Check for admin ---
net session >nul 2>&1
if %errorlevel% neq 0 (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
:: --- Activate Conda environment ---
CALL C:\ProgramData\Anaconda3\Scripts\activate.bat yolo_env2
:: --- Navigate to script directory ---
cd /d C:\Users\username\Desktop
:: --- Run Python script visibly ---
python autorun_wifi_on.off.2.py
:: --- Keep window open after script exits ---
pause