empty file generated when running GPG batch
Lee Elcocks
l_elcocks at hotmail.co.uk
Thu Mar 24 16:26:08 CET 2011
Your out put should look like this.
"C:\encryptedfiles\%%F.pgp" %%F
From: jerome at jeromebaum.com
To: johnathan.barbett at elephant.com
Subject: Re: empty file generated when running GPG batch
Date: Thu, 24 Mar 2011 10:53:23 +0000
CC: gnupg-users at gnupg.org
jb1111 <johnathan.barbett at elephant.com> writes:
> Hi, this is running in a batch. It creates a .pgp file, however that file is
> empty. Any ideas?
>
> SETLOCAL
> PATH=C:\Program
> Files\GNU\GnuPG;c:\encryptedfiles;c:\outgoingdropfolder;%PATH%
>>"%TMP%\~encryptlist.txt" DIR /B "C:\outgoingdropfolder"
> PUSHD "C:\outgoingdropfolder"
> pause
> FOR /F "delims=" %%F IN ('MORE ^< "%TMP%\~encryptlist.txt"') DO (
> pause
> IF EXIST %%F (
> pause
> ECHO Password|GPG --batch --encrypt --passphrase-fd 0 -r Publickey -o
> "C:\encryptedfiles\%%F.pgp"
> pause
> IF ERRORLEVEL == 0 DEL "%%F"
> )
> )
> POPD
> DEL "%TMP%\~encryptlist.*"
> ENDLOCAL
What does it output? Also, sure you want to echo in the password? Seems
like it's not necessary.
--
PGP: A0E4 B2D4 94E6 20EE 85BA E45B 63E4 2BD8 C58C 753A
PGP: 2C23 EBFF DF1A 840D 2351 F5F5 F25B A03F 2152 36DA
_______________________________________________ Gnupg-users mailing list Gnupg-users at gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20110324/80ca49e0/attachment.htm>
More information about the Gnupg-users
mailing list