Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to decrypt multiple files to a different directory keeping the existing filenames. When i run the below syntax it seems to decrypt them ok but it only ouputs to the screen. I would like to either output the files with the same name to a different directory or overwrite the exciting files with the same name. Can this be done with gpg? Here is my syntax:

FOR %i in (C:\GPGFILES\*.gpg) do (gpg --batch --yes --passphrase key123 --decrypt "%i")
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.