My next step (or last resort) was going to be to to use gbak via a batch file, as per 
your example. I can seem to call a simple test batch file OK with ExecuteShell but are 
still baffled as to why my original GBAK call doesn't work. Sure it's something to do 
with the length of the parameter string. I might try calling ShellExecute directly.

-----Original Message-----
From:   Peter Hyde [SMTP:[EMAIL PROTECTED]]
Sent:   Monday, November 15, 1999 1:22 PM
To:     Multiple recipients of list delphi
Subject:        RE: [DUG]: GBAK and ExecuteFile

Hi Andrew,

> Thanks, yes I've seen that. It does work well.
> 
> I need a braindead user "click on a button" backup option though.

This code from one of my webapps might suffice. The SHELL 
statement is a WebHub macro which basically does an 
EexecuteFile. The backup batch file it calls is below it:

%=SHELL|d:\sites\thissite\dbbkp.bat=%

== dbbkp.bat:

del db.zip

"d:\program files\interbase corp\interbase\bin\gbak" -user 
USERNAME -password pwd d:\sites\thissite\db.gdb db.gbk

pkzip -add -move db.zip db.gbk

== ends

(uses pkzip 2.05 for that last step)


cheers,
peter

============================================
Peter Hyde, WebCentre and SPIS, Christchurch, New Zealand 
* Web automation for online periodicals: http://TurboPress.com
* TurboNote: http://TurboPress.com/tbnote.htm
  -- small, FREE and very handy
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

application/ms-tnef

Reply via email to