In Windows XP, you can use the following command
cacls C:\GNUPG /T /E /G everyone:F
If the username is passed as the first parameter to the batch file, use the following command
cacls C:\GNUPG /T /E /G %1:F
In the above parameter, "C: \ GNUPG" is the path name
source
share