<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Estrangelo Edessa";
        panose-1:3 8 6 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Elephant;
        panose-1:2 2 9 4 9 5 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi gpg4win users,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to create a batch file that will encrypt a file using GnuPG software.  On page 60 in the Using the GNU Privacy Guard manual under 3.4 Examples, the example given to sign and encrypt for user Bob is “gpg –se –r Bob file”.<o:p></o:p></p>
<p class="MsoNormal">I enter the following command:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">C:\Program Files\GNU\GnuPG>gpg2 –e –r Educational Computer Systems Inc E:\sftproot\perkins_loan\TESTbldpromIG20141201.csv<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After I hit enter, the dos window displays:  usage: gpg [options] –encrypt [filename] and there is no encrypted file in my E:\sftproot\perkins_loan directory.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">If I enter the following (not specifying the recipient) with my responses highlighted:<o:p></o:p></p>
<p class="MsoNormal">C:\Program Files\GNU\GnuPG><span style="background:yellow;mso-highlight:yellow">gpg2 -e E:\sftproot\perkins_loan\TESTbldpromIG20141201.csv</span><o:p></o:p></p>
<p class="MsoNormal">You did not specify a user ID. <you may use "-r"><o:p></o:p></p>
<p class="MsoNormal">  <o:p></o:p></p>
<p class="MsoNormal">Current recipients:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Enter the user ID.  End with an empty line: <span style="background:yellow;mso-highlight:yellow">
Educational Computer Systems Inc</span><o:p></o:p></p>
<p class="MsoNormal">gpg: 21CBF00F: There is no assurance this key belongs to the named user<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">pub  1024R/21CBF00F 2002-12-05 Educational Computer Systems Inc <admin@ecsi.net><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Primary key fingerprint: F2 2B 3E 5C 85 3F 0D C7  22 F8 60 D0 70 A9 F1 75<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It is NOT certain that the key belongs to the person named<o:p></o:p></p>
<p class="MsoNormal">in the user ID.  If you *really* know what you are doing,<o:p></o:p></p>
<p class="MsoNormal">you may answer the next question with yes.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Use this key anyway? <y/N> <span style="background:yellow;mso-highlight:yellow">
y</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Current recipients:<o:p></o:p></p>
<p class="MsoNormal">1024R/21CBF00F 2002-12-05 "Educational Computer Systems Inc <admin@ecsi.net>"<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Enter the user ID.  End with an empty line: <span style="background:yellow;mso-highlight:yellow">
<Enter></span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I check E:\sftproot\perkins_loan, there is a TESTbldrpromIG20141201.csv.gpg file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How do I code gpg2 to encrypt the TESTbldpromIG20141201.csv file using the public key for Educational Computer Systems Inc ?  I need to be able to add this to my batch file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-family:"Elephant","serif"">Kent Hurtig<o:p></o:p></span></p>
<p class="MsoNormal">Programmer/Analyst<o:p></o:p></p>
<p class="MsoNormal">Friend's University<o:p></o:p></p>
<p class="MsoNormal">316-295-5048<o:p></o:p></p>
<p class="MsoNormal"><a href="mailto:kent_hurtig@friends.edu">kent_hurtig@friends.edu</a>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>