-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstart.bat
More file actions
60 lines (52 loc) · 1.42 KB
/
Copy pathstart.bat
File metadata and controls
60 lines (52 loc) · 1.42 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
58
59
60
@echo off
REM NoSQL2SQL Migration Tool - Startup Script
REM This script checks dependencies and starts the application
echo.
echo ================================================
echo NoSQL2SQL Migration Tool - Enhanced Edition
echo ================================================
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python is not installed or not in PATH
echo Please install Python 3.7+ from https://www.python.org/
pause
exit /b 1
)
echo [1/3] Checking Python installation...
python --version
REM Check if required packages are installed
echo.
echo [2/3] Checking dependencies...
python -c "import tkinter" >nul 2>&1
if errorlevel 1 (
echo WARNING: tkinter not found. It should come with Python.
echo If you see errors, reinstall Python with tkinter support.
)
python -c "import mysql.connector" >nul 2>&1
if errorlevel 1 (
echo.
echo Missing dependencies detected!
echo Installing required packages...
echo.
pip install -r requirements.txt
if errorlevel 1 (
echo.
echo ERROR: Failed to install dependencies
echo Please run: pip install -r requirements.txt
pause
exit /b 1
)
)
echo All dependencies OK!
REM Start the application
echo.
echo [3/3] Starting NoSQL2SQL Migration Tool...
echo.
python gui_converter.py
if errorlevel 1 (
echo.
echo Application exited with an error.
pause
)