SET bin="C:\Program Files\Firebird\Firebird_5_0"
SET script=./indexSql.txt
SET username=SYSDBA
SET password=firebirdsql
SET PATDB=c:\temp\database.fdb
%bin%\isql -i %script% -u %username% -p %password% %PATDB%
if %ERRORLEVEL% NEQ 0 echo Error
If the database does not exists isql return always 0, It should be return an error code.
Dear,
I have created this script
If the database does not exists isql return always 0, It should be return an error code.
What do you think?
Thanks Pier