@echo off
echo UK Data Services - Website Startup Script
echo ==========================================
echo.

REM Check if XAMPP is installed
if exist "C:\xampp\xampp-control.exe" (
    echo Starting XAMPP Control Panel...
    start "" "C:\xampp\xampp-control.exe"
    echo.
    echo XAMPP Control Panel started!
    echo.
    echo Instructions:
    echo 1. Click 'Start' next to Apache in XAMPP Control Panel
    echo 2. Wait for Apache to show as 'Running' (green)
    echo 3. Open your browser and go to: http://localhost/ukdataservices/
    echo.
) else (
    echo XAMPP not found at C:\xampp\
    echo.
    echo Please install XAMPP first:
    echo 1. Download from: https://www.apachefriends.org/
    echo 2. Install to C:\xampp
    echo 3. Copy your website files to C:\xampp\htdocs\ukdataservices\
    echo 4. Run this script again
    echo.
)

echo Press any key to continue...
pause > nul