Encrypting SubFolders

Ryan Malayter rmalayter at bai.org
Thu Mar 10 18:43:13 CET 2005

Whoops... Forgot one more thing. You should add the /I operator to the
IF command to make sure it does case-insensitive string comparisons,
just to be safe.  And quotes around the comparison strings make things a
bit clearer.

So a working command should be very similar to this:

FOR /R c:\temp %f IN (*) DO IF /I NOT "%~xf"==".gpg" gpg --encrypt %f


More information about the Gnupg-users mailing list