you can use the gpg command line tool for this - I would advise installing the gpg4win package (to get the key management tools) from http://www.gpg4win.org/ then using the following syntax:
gpg --batch --passphrase-fd 0 --decrypt test-target.txt.gpg --output test-target.txt < pass.txt
where pass.txt is a textfile containing the passphrase and the two arguments can be replaced with session variables; it is trivial to write a vbscript wrapper which will iterate though all files in a subdir, take the filename, then strip off the final .pgp to give the target filename to pass to the command line tool.
Main Topics
Browse All Topics





by: richrumblePosted on 2007-11-09 at 07:59:29ID: 20250406
What product of PGP are you using? Desktop home, universal server etc... s/commandl ine/server s/index.ht ml
download/i ndex.html# auto-ref-2 entation/f aqs.html
PGP offers a cli product, but there is no mention I can find that you can do this without the added product.. but you might be able to use another product, like GPG to do it
http://www.pgp.com/product
Here is the windows version of GPG: http://www.gnupg.org/(en)/
http://www.gnupg.org/docum
install the software, go to a cmd prompt, change to the installed directory (cd c:\program files\gnu\gnupg )type
gpg -d filename.pgp
You may have to import your keys from PGP first tyoe gpg.exe --help for all the options
-rich