@echo off
setlocal
cd /d "%~dp0"

echo.
echo [AIWK] Chrome EXT4 load - profile required
echo ------------------------------------------------------------
echo Detected profiles from configured user_data_dir:
py aiwk_mypc_agent.py --chrome-profiles-list
echo ------------------------------------------------------------
echo.
echo Chrome profile directory examples:
echo   Default
echo   Profile 1
echo   Profile 2
echo   Profile 3
echo.
set /p AIWK_PROFILE=Load EXT4 with which Chrome profile directory? : 
if "%AIWK_PROFILE%"=="" (
  echo [AIWK] cancelled. profile-directory is required.
  pause
  exit /b 1
)

echo.
echo [AIWK] launching Chrome profile: %AIWK_PROFILE%
py aiwk_mypc_agent.py --chrome-load-ext4 --profile-directory "%AIWK_PROFILE%"
pause
