@echo off title DTI_SERVER cd /d "%~dp0" echo 伺服器根目錄: %CD% echo 網址: http://127.0.0.1:9877/dti_neuropath/fiber_viewer.html echo. where py >nul 2>&1 if %errorlevel% equ 0 ( py -3.11 -m http.server 9877 --bind 127.0.0.1 ) else ( python -m http.server 9877 --bind 127.0.0.1 ) pause