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

gmane.bl4 at gishpuppy.com gmane.bl4 at gishpuppy.com
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
 )
 ECHO;%origFilename%
 

Gishpuppy | To change the delivery settings for this email, click here: 
http://www.gishpuppy.com/cgi-bin/edit.py?email=gmane.bl4@gishpuppy.com



More information about the Gnupg-users mailing list