----- Original Message -----
From: "Alexandre Benson Smith" <iblist@...>
>> 2) If Firebird is not installed in the location I specify in my batch
>> file,
>> then my batch file will not work. How can I call gsec if I do not know
>> where
>> the user has installed it?
>>
> Regarding using a batch file, you could ask the password in a Delphi
> form, and create a batch file on the fly with the supplied password, and
> then just run it as you do. Pretty ugly IMHO...
Even if I did that, I still have the problem that the end user may not have
installed Firebird in the default location, or they may be using a different
version of Firebird and so the path to where GSEC is will not always be the
same.
In the example above, my batch file contained this:
c:\Progra~1\Firebird\Firebird_1_5\bin\gsec -user SYSDBA -password
masterkey -add MYUSER -pw %myusername%
How can I call GSEC from a batch file without knowing where it is? It is not
in the command line path by default.