Subject Re: [firebird-support] how do i run gbak from delphi
Author Peter
Hi Pete

I'm actually loading up a delphi unit for people to use that shows how to
find the firebird location in the registry in order to locate gbak, then
gbak is called from shellexecute.

It has a top level function called backup that does all the work.

I just have to add a header description and some more comments
before I post it ,but if you want the work in progress (which works fine)
just email me privately.

Rgds

Peter

On 17 Jul 2004 at 19:24, petesouthwest wrote:

> Hi
>
> I am trying to run gbak from delphi using:
> shellexecute(form1.handle,'open',pchar
> (backupStr),nil,nil,sw_shownormal);
>
> where backupStr:= 'gbak [-b] -user sysdba -pass masterkey '+
> IB_connection1.databaseName +'backup18_07_04.gbk'
>
> but nothing appears to be happining. I have copied gbak.exe and
> fbclient.dll into the directory of the exe. The directory is on the
> same drive as firebird has been installed on.
>
> Can anyone suggest where it is going wrong?
>
> I'm using delphi 6, on win xp
>
> Thanks
> Pete
>
>
> Yahoo! Groups Sponsor
>
> ADVERTISEMENT
> click here
>
>
>
>
>
>
>
> Yahoo! Groups Links
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/firebird-support/
>
> * To unsubscribe from this group, send an email to:
> firebird-support-unsubscribe@yahoogroups.com
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>


--
=================================================
Peter Chaisty e-Mail: peter@...
-------------------------------------------------
Cyionics Ltd UK
Tel: +44(1)1495 785570
All email is scanned using Norton Antivirus
=================================================