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

Reply via email to