title: Answer password to keytool in batch files
body: <p>i need use keytool and jarsigner to sign a lot o files here in many folders.<br>
  Each time i start sign theses files i need delete the .cert and keystore file to recreate it.<br>
  Im on development enviroment and using fake passwd to sign it, after application working the infra people will take care of sign it, i havent access to real certificates.<br>
  When i was typing and the <code>keytool -import .......</code> ,after enter, ask for password i simply type it but in batch it become a problem.<br>
  Im on windows 7 here.<br>
  I was tried <code>keytool -import ....... &lt; passHere</code> and <code>keytool -import ....... | passHere</code>, too but it doesn't work.<br>
  I want turn sign most automatic possible.<br>
  There is someone telling about use it programatically <a href="https://stackoverflow.com/questions/5051195/how-to-utilize-keytool-programatically">here</a> but i simply need it on a bat file.<br>
  The password is a <strong>fixed</strong> value <strong>inside</strong> batch file.<br>
  There is a way to give passwd inline to keytool?<br>
  Is possible set an enviroment variable in 'run time' to feed keytool password? how do it ?<br>
  There is a way to give passwd inside bath to keytool? I see <a href="http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q77457&amp;" rel="noreferrer">this</a> but dont help because i'm not a asm developer and not sure if it match problem and im wondering if there is something more simple.</p>
  
  <p>Thanks</p>