]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/cats/drop_postgresql_database.cmd
kes Add context menu for floating a window.
[bacula/bacula] / bacula / src / win32 / cats / drop_postgresql_database.cmd
index 553ae3cf5cc426e320e0a7bade3d4a81b0005a48..f5979a52d0bfb3a62e9995e0e1c7f9c4451a225b 100644 (file)
@@ -1,15 +1,14 @@
-rem \r
-rem  shell script to drop Bacula database(s)\r
-rem \r
+@ECHO off\r
+REM\r
+REM  Script to drop Bacula database(s)\r
+REM\r
 \r
-bindir=@SQL_BINDIR@\r
-\r
-$bindir/dropdb bacula\r
-if ERRORLEVEL 1 GOTO :ERROR\r
-echo "Drop of bacula database succeeded."\r
+"@SQL_BINDIR@\dropdb" %* bacula\r
+IF ERRORLEVEL 1 GOTO :ERROR\r
+ECHO Drop of bacula database succeeded.\r
 EXIT /b 0\r
 GOTO :EOF\r
 \r
 :ERROR\r
-echo "Drop of bacula database failed."\r
+ECHO Drop of bacula database failed.\r
 EXIT /b 1\r