executing GPG commands inside VB .net 2003 form



I've been trying for some time now to decrypt with GPG from inside vb .net
to no avail. my normal decrypt command goes something like this:

gpg.exe --armor --passphrase-fd 0 <
P:\mis\mfg\NorelcoIBM\etc\foxpassphrase.txt -o
\\fox7\mfg$\Applica\Infomercial\Orders\West\%1 -d
\\www\d$\Inetpub\ftproot\littermaid_west\inbox\%1.PGP

The input file is normally called something.txt.pgp and this command
generates the output file for me something.txt

The problem is coming inside .net from the fact that I am reading from
standard input the passphrase. I tried to write the passphrase to the
standard input of the process, that didn't work. I tried using Windows
scripting host to execute the command instead, that didn't work.

Has anyone found a way to make this work?

--
Scott Emick
Web Programmer
Fox International
Remove the ham from mail address if it's not spam


.



Relevant Pages

  • execute gpg commands in dotnet?
    ... my normal decrypt command goes something like this: ... The input file is normally called something.txt.pgp and this command ... I tried to write the passphrase to the ... standard input of the process, ...
    (microsoft.public.dotnet.general)
  • Re: execute gpg commands in dotnet?
    ... my normal decrypt command goes something like this: ... The input file is normally called something.txt.pgp and this command ... I tried to write the passphrase to the ...
    (microsoft.public.dotnet.general)
  • Re: ssh-keygen empty passphrase
    ... the command won't read anything from ... standard input. ... "Enter passphrase(empty for no passphrase): ...
    (comp.security.ssh)
  • Re: safe scanf( ) or gets
    ... programs which read from standard input and write to ... You don't know about operating systems providing command line ... filter programs. ... on a typical *nix system without using stream filters, e.g. grep, ...
    (comp.lang.c)
  • Re: Executing a command in sub-shell
    ... If you don't redirect standard input for the ... `cleartool setact activity_name` command, it inherits its input from the ... `cleartool setact activity_name` subshell... ...
    (comp.unix.shell)