I'm trying to run gpg.exe from C# using ProcessStartInfo()/Process.Start(). When I run it from cmd it works. I copy and paste the exact command I ran from cmd into my C# app and gpg.exe opens but it just hangs. Doesn't show any text in the window and just sits there doing nothing. What could be going on?
var gpg = new ProcessStartInfo(@"C:\GnuPG\gpg.exe", @"--batch --yes --output c:\applications\development\invoicedecryption\temp\invoice.csv --passphrase-fd <C:\GNUPG\pasfraz.txt --decrypt C:\applications\development\invoicedecryption\temp\Invoices.csv.pgp");
var prs = new Process();
prs.StartInfo = gpg;
prs.Start();