If you checkout the Dunstan Thomas IB site, they have a GBak scheduler for 
NT/95 that we have been using.  It works really well and it's free.

http://www.interbase.dthomas.co.uk


>From: Andrew Masters <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Subject: [DUG]:  GBAK and ExecuteFile
>Date: Mon, 15 Nov 1999 11:09:21 +1300
>
>Hi,
>
>I've got some code, simplified as follows
>
>SourceStr:='C:\MYDB.GDB';
>TargetStr:='C:\MYDB.GBAK';
>// Gets the root directory of the IB install
>PathStr:=GetRegistryValue(IBREG_ROOTKEY, IBREG_SUBKEY, IBREG_ROOTDIR) + 
>'BIN';
>ParamStr:='-B -user SYSDBA -password masterkey ' + SourceStr + ' ' + 
>TargetStr;
>ExecuteFile('GBAK.EXE', ParamStr, PathStr, SW_HIDE);
>
>Running GBAK from a DOS prompt with exactly the same parameters works fine. 
>It just seems ExecuteFile will not do its bit. Any ideas whats wrong. The 
>only issue I've faced is ParamStr was too long for ExecuteFile (MYDB.GDB is 
>only an example, it's actually a longer path). I changed the param for 
>ExecuteFile in FMXUtils from array[0..79] of Char to array[0..128] of Char. 
>Any ideas appreciated.
>
>OR, is there a better was to do a quick and simple online backup ?
>
>TIA
>Andrew Masters
>Clinical Solutions Ltd
>Auckland, NZ
>Ph: +64-9-476-0106
>Fax: +64-9-476-0108
>e: [EMAIL PROTECTED]
>
>---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to