Click here to Skip to main content
15,922,007 members
Home / Discussions / C#
   

C#

 
QuestionHow di I add a "Send To..." item Pin
Adrian Hall7-Mar-03 8:52
Adrian Hall7-Mar-03 8:52 
AnswerRe: How di I add a "Send To..." item Pin
Stephane Rodriguez.7-Mar-03 9:51
Stephane Rodriguez.7-Mar-03 9:51 
GeneralRe: How di I add a "Send To..." item Pin
Adrian Hall7-Mar-03 10:41
Adrian Hall7-Mar-03 10:41 
GeneralRe: How di I add a "Send To..." item Pin
Stephane Rodriguez.7-Mar-03 11:26
Stephane Rodriguez.7-Mar-03 11:26 
QuestionHow can I field Win32 callbacks like EnumChildWindows? Pin
Mattingly7-Mar-03 7:54
Mattingly7-Mar-03 7:54 
AnswerRe: How can I field Win32 callbacks like EnumChildWindows? Pin
leppie7-Mar-03 8:46
leppie7-Mar-03 8:46 
GeneralRe: How can I field Win32 callbacks like EnumChildWindows? Pin
Mattingly7-Mar-03 9:20
Mattingly7-Mar-03 9:20 
Generalcalling gpg.exe from a console app Pin
zamoranelson7-Mar-03 5:41
zamoranelson7-Mar-03 5:41 
I am trying to decrypt a file using my PGP keyring inside a C# windows console application. I have a program that will detect a new file on my server. I'm building another app that will first decrypt the file and then start the file processing.

The code I use to decrypt the file without inserting a passphrase works but instead uses the passphrase read from password.txt,

gpg.exe --output mydoc.txt --passphrase-fd 0 < password.txt --decrypt myencrypteddoc.dat.pgp

This works when I run it at command line. But inside the console it seems to hang when reading the file descriptor because the command window message "Reading file descriptor 0 ..." continually displays and the decryption never occurs.

Process process = new Process();
process.StartInfo.FileName="E:\\Program Files\\pgp\\gpg.exe";

process.StartInfo.Arguments="--output mydoc.txt --passphrase-fd 0 < password.txt --decrypt myencrypteddoc.dat.pgp";

process.Start();
process.WaitForExit();

Any help with this would be appreciated.

Thank You!

mazn
GeneralRe: calling gpg.exe from a console app Pin
Baris Kurtlutepe7-Mar-03 17:06
Baris Kurtlutepe7-Mar-03 17:06 
GeneralInvoking Methods by name Pin
Jon Newman7-Mar-03 4:10
Jon Newman7-Mar-03 4:10 
GeneralRe: Invoking Methods by name Pin
Jon Newman7-Mar-03 4:28
Jon Newman7-Mar-03 4:28 
GeneralRe: Invoking Methods by name Pin
Paresh Gheewala7-Mar-03 10:41
Paresh Gheewala7-Mar-03 10:41 
GeneralShort Q: How to close a Console App and exit the program Pin
Schmidt__7-Mar-03 3:16
sussSchmidt__7-Mar-03 3:16 
GeneralRe: Short Q: How to close a Console App and exit the program Pin
Paul Riley7-Mar-03 3:18
Paul Riley7-Mar-03 3:18 
GeneralRe: Short Q: How to close a Console App and exit the program Pin
Nish Nishant7-Mar-03 3:20
sitebuilderNish Nishant7-Mar-03 3:20 
GeneralRe: Short Q: How to close a Console App and exit the program Pin
Paul Riley7-Mar-03 4:47
Paul Riley7-Mar-03 4:47 
GeneralRe: Short Q: How to close a Console App and exit the program Pin
Paresh Gheewala7-Mar-03 10:39
Paresh Gheewala7-Mar-03 10:39 
GeneralShort timezone names Pin
gercules7-Mar-03 3:10
gercules7-Mar-03 3:10 
QuestionHow to Paste Metafile(GIF) from EXCEL Pin
tzn6-Mar-03 23:31
tzn6-Mar-03 23:31 
Generalwriting a ad blocker: help needed! Pin
viperxp6-Mar-03 22:47
viperxp6-Mar-03 22:47 
GeneralRe: writing a ad blocker: help needed! Pin
Stephane Rodriguez.7-Mar-03 0:59
Stephane Rodriguez.7-Mar-03 0:59 
GeneralRe: Thanks, more info pls... Pin
viperxp7-Mar-03 3:02
viperxp7-Mar-03 3:02 
GeneralRe: writing a ad blocker: help needed! Pin
leppie7-Mar-03 9:07
leppie7-Mar-03 9:07 
GeneralRe: writing a ad blocker: help needed! Pin
viperxp19-Mar-03 4:10
viperxp19-Mar-03 4:10 
GeneralRe: writing a ad blocker: help needed! Pin
Stephane Rodriguez.19-Mar-03 4:53
Stephane Rodriguez.19-Mar-03 4:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.