-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
57 lines (48 loc) · 1.38 KB
/
start.bat
File metadata and controls
57 lines (48 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
REM Windows startup script for Local Nexus Controller
echo ============================================================
echo Local Nexus Controller - Windows Startup
echo ============================================================
echo.
REM Get the directory where this script is located
cd /d "%~dp0"
echo Current directory: %CD%
echo.
REM Check if Python is available
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.10 or higher from python.org
echo.
pause
exit /b 1
)
echo Python found:
python --version
echo.
REM Check if requirements.txt exists
if not exist "requirements.txt" (
echo ERROR: requirements.txt not found
echo Make sure you're running this from the project root directory
echo.
pause
exit /b 1
)
echo Starting Local Nexus Controller...
echo.
echo Checking for port conflicts...
echo.
REM Run the PowerShell script which handles port conflicts
powershell -ExecutionPolicy Bypass -File "%~dp0run.ps1"
REM If the script exits, show error message
if errorlevel 1 (
echo.
echo ============================================================
echo ERROR: Application failed to start
echo ============================================================
echo.
echo Check the error messages above for details.
echo.
pause
exit /b 1
)