Link to home
Start Free TrialLog in
Avatar of rmmarsh
rmmarshFlag for United States of America

asked on

Unable to programmatically restore Firebird d/b

I have the code below... it does NOT work!  However, if I take the same string and put it in a command prompt, works like a champ... the "firebirdinstallationpath" is correct (I verified it).

Why won't this work?
string debugString = " -REP -user sysdba -pass masterkey \"" + backupFilename + "\" " + dbPath;
            Process.Start(firebirdInstallationPath + "gbak.exe", debugString);

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Nick Upson
Nick Upson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rmmarsh

ASKER

Hi Nick... glad to hear from you... I'll give it a try and get back to you...

Just in case, get rid of the leading blank character in debug string.
Avatar of rmmarsh

ASKER

That worked like a champ!  I don't understand why, tho'... can you enlighten me?
Hi.  Which one worked like a champ?
Avatar of rmmarsh

ASKER

Nicks...
Avatar of rmmarsh

ASKER

Thanks again...