Saving photo of a key to a given filename

Karl Hasselström kha at treskal.com
Wed Mar 16 18:16:37 CET 2005


On 2005-03-16 17:28:02 +0100, Thomas Zangl - Home wrote:

> Am Wed, 16 Mar 2005 15:49:27 +0100, schrieb "Sascha Kiefer"
> <sk at intertivity.com>:
>
> > you can use the photo-viewer option. example:
> >
> > - --photo-viewer \"cmd /c copy /Y \"%i\"filename.tmp\"\"
> >
> > will copy the picture-file to filename.tmp
>
> Does work from the command line but not from within my Delphi App.
> It seems that "cmd" is not called at all - maybe because GPG is
> called from within a temporary batchfile which is executed through
> "CreateProcess"...

You might have been bitten by the escaping. This example works on the
command line because the shell evaluates the command line args before
passing them to gpg. If you call gpg in a way that don't pass the args
through a shell, you should not be escaping quotes.

-- 
Karl Hasselström, kha at treskal.com
      www.treskal.com/kalle



More information about the Gnupg-users mailing list