@echo off
rem *******************************************
rem * checking if GNUPGHOME it is set or no *
rem * Author: Dan D. *
rem * Date: Oct-28-2007 *
rem * Version 1.0 for XP *
rem *******************************************
if not defined GNUPGHOME goto novar
echo Variable GNUPGHOME already set to = %GNUPGHOME%
goto end
:novar
echo Variable GNUPGHOME does not exist yet
set GNUPGHOME=c:\tools\gnupg
echo It will be set to GNUPGHOME = %GNUPGHOME%
:end
rem **************************************
rem * encrypt file arg 1 to "arg 1.pgp" *
rem * where user name is arg 1 *
rem * Author Dan D. *
rem * Date: Oct-29-2007 *
rem * Version 1.0 for XP *
rem **************************************
gpg --recipient "Dan Dascalu" --output "%1.gpg" --encrypt "%1"