error: Folder is open in GnuPG's OpenPGP tool
Open, LowPublic



I'm using gpg4win v2.2.1 in my system running Windows Server 2008 R2 Enterprise edition.
I'm encrypting multiple zip files using gpg2.exe in a loop using a batch program.

I'm facing an intermittent issue wherein after the encryption is completed the gpg2.exe process still runs locking the entire folder where the zip files are placed.
The encryption process produced the .PGP files without any issues. But when I tried to manually move the zip files I received the below error.

"The action can't be completed because the folder is open in GnuPG's OpenPGP tool"

Then I killed the gpg2.exe process using task manager and then moved the files manually.

Could you please help to resolve this intermittent issue where this gpg2.exe process is locking the folder?


Dhinu created this task.May 16 2018, 7:05 PM
aheinecke closed this task as Resolved.May 17 2018, 7:59 AM
aheinecke claimed this task.
aheinecke added a subscriber: aheinecke.

Please update to Gpg4win-3.1.1 this issue should be resolved. There was a similar issue with Gpg4win 3 T2670 but it has been resolved.

Dhinu added a comment.Aug 6 2018, 5:55 PM


I updated the software to its latest version "gpg4win v3.1.1" and i'm still facing this issue.

gpg.exe is locking the zip file even after encryption is completed and preventing other processes to access the file.
I killed the gpg.exe process using task manager and then moved the file manually.

Could you please help to resolve this intermittent issue?


aheinecke reopened this task as Open.Aug 7 2018, 8:36 AM
aheinecke triaged this task as Low priority.

I misunderstood your original report.

The problem seems to be that gpg.exe is still running, then it will of course lock the directory in which it is running.

Could you please add the script that you are using? I think there must be a problem with that which causes gpg.exe not to terminate.