@@ -13,10 +13,11 @@ echo SQL2Excel Tool v1.2
1313echo =========================================
1414echo .
1515
16- :: Check executable file
17- if not exist " sql2excel-v1.2.3.exe" (
18- echo sql2excel-v1.2.3.exe file not found.
19- echo Please make sure the executable file is in the current directory.
16+ :: Check Node.js installation
17+ node --version > nul 2 >& 1
18+ if %errorlevel% neq 0 (
19+ echo Node.js가 설치되지 않았습니다.
20+ echo https://nodejs.org 에서 Node.js를 설치해주세요.
2021 echo .
2122 pause
2223 exit /b 1
@@ -92,9 +93,9 @@ echo Validating query definition file...
9293echo .
9394
9495if " %file_type% " == " xml" (
95- sql2excel-v1.2.3.exe validate --xml " %query_file% "
96+ node src/excel-cli.js validate --xml " %query_file% "
9697) else (
97- sql2excel-v1.2.3.exe validate --query " %query_file% "
98+ node src/excel-cli.js validate --query " %query_file% "
9899)
99100
100101if %errorlevel% equ 0 (
@@ -118,7 +119,7 @@ echo.
118119echo Testing configured database connections...
119120echo .
120121
121- sql2excel-v1.2.3.exe list-dbs
122+ node src/excel-cli.js list-dbs
122123
123124if %errorlevel% equ 0 (
124125 echo .
@@ -170,7 +171,7 @@ echo.
170171:: Record start time
171172set start_time = %time%
172173
173- sql2excel-v1.2.3.exe export --xml " %xml_file% "
174+ node src/excel-cli.js export --xml " %xml_file% "
174175
175176if %errorlevel% equ 0 (
176177 echo .
@@ -224,7 +225,7 @@ echo.
224225:: Record start time
225226set start_time = %time%
226227
227- sql2excel-v1.2.3.exe export --query " %json_file% "
228+ node src/excel-cli.js export --query " %json_file% "
228229
229230if %errorlevel% equ 0 (
230231 echo .
@@ -253,7 +254,7 @@ echo Help
253254echo =========================================
254255echo .
255256
256- sql2excel-v1.2.3.exe help
257+ node src/excel-cli.js help
257258
258259echo .
259260echo Additional Information:
0 commit comments