static void Main(string[] args)
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.WorkingDirectory = firebirdInstallationPath;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "gsec.exe";
p.StartInfo.Arguments = "-add prager -pw books";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();
}
|