How can I extract the --embedded-filename for scripting [GishPuppy]

gmane.bl4 at gmane.bl4 at
Wed May 8 13:52:41 CEST 2013

You do not indicate OS.

Windows NT 5.x+ OS script:

 GPG -v --use-embedded-filename file.gpg 2>$$$.tmp
 FOR /F "tokens=2 delims='" %%I IN ('FIND "gpg: original file name" ^<$$$.tmp') DO (
 @SET origFilename=%%I
 DEL $$$.tmp

Gishpuppy | To change the delivery settings for this email, click here:

More information about the Gnupg-users mailing list