Avatar of rmmarsh
rmmarsh
Flag 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

Databases.NET ProgrammingC#

Avatar of undefined
Last Comment
rmmarsh

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Nick Upson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rmmarsh

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

sjklein42

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

ASKER
That worked like a champ!  I don't understand why, tho'... can you enlighten me?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
sjklein42

Hi.  Which one worked like a champ?
rmmarsh

ASKER
Nicks...
rmmarsh

ASKER
Thanks again...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.