empty file generated when running GPG batch
jb1111
johnathan.barbett at elephant.com
Thu Mar 24 18:23:04 CET 2011
You have saved the day yet again Lee! Thanks a lot.
Lee Elcocks wrote:
>
>
> 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
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>
>
=)
--
View this message in context: http://old.nabble.com/empty-file-generated-when-running-GPG-batch-tp31223498p31231071.html
Sent from the GnuPG - User mailing list archive at Nabble.com.
More information about the Gnupg-users
mailing list