]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/drop_mysql_tables.cmd
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / cats / drop_mysql_tables.cmd
index fb897394cea243e4c8407b66eb5f7a96fed87937..fd7cc332b83eb1e3e8fa28866cf258afe7d274e6 100644 (file)
@@ -1,13 +1,14 @@
-rem
-rem Script to delete Bacula tables for MySQL
-rem
-
-if %SQL_BINDIR%/mysql $* < drop_mysql_tables.sql
-set RESULT=%ERRORLEVEL%
-if %RESULT% GTR 0 goto :ERROR
-echo "Deletion of Bacula MySQL tables succeeded."
-exit /b 0
-
-:ERROR
-echo "Deletion of Bacula MySQL tables failed."
-exit /b %RESULT%
+@ECHO off\r
+REM\r
+REM Script to delete Bacula tables for MySQL\r
+REM\r
+\r
+"@SQL_BINDIR@\mysql" %* < "@bin_dir_cmd@\drop_mysql_tables.sql"\r
+SET RESULT=%ERRORLEVEL%\r
+IF %RESULT% GTR 0 goto :ERROR\r
+ECHO Deletion of Bacula MySQL tables succeeded.\r
+EXIT /b 0\r
+\r
+:ERROR\r
+ECHO Deletion of Bacula MySQL tables failed.\r
+EXIT /b %RESULT%\r