empty file generated when running GPG batch
jb1111
johnathan.barbett at elephant.com
Wed Mar 23 21:29:38 CET 2011
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
--
View this message in context: http://old.nabble.com/empty-file-generated-when-running-GPG-batch-tp31223498p31223498.html
Sent from the GnuPG - User mailing list archive at Nabble.com.
More information about the Gnupg-users
mailing list