title: Using batch script to read properties file
body: <p>I have a properties file located <code>%ilmhome%\webapp\WEB-INF\amhome.properties</code></p>
  
  <pre><code>#Tue Feb 15 19:27:14 IST 2011
  amhome.connection.password=amhome534
  amhome.connection.url=jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=diablo)(PORT\=1521)))(CONNECT_DATA\=(SERVER\=DEDICATED)(SERVICE_NAME\=orcl)))
  amhome.connection.maxWait=20000
  amhome.connection.username=amhome534
  amhome.connection.platformId=6
  amhome.connection.driver_class=oracle.jdbc.driver.OracleDriver
  </code></pre>
  
  <p>I want to fetch the below items from amhome.properties file into some variables</p>
  
  <pre><code>Username        : amhome534
  Host            : diablo
  Port            : 1521
  ServiceName    : orcl
  ConnString     : jdbc\:oracle\:thin\:@(DESCRIPTION\=(ADDRESS_LIST\=(ADDRESS\=(PROTOCOL\=TCP)(HOST\=diablo)(PORT\=1521)))(CONNECT_DATA\=(SERVER\=DEDICATED)(SERVICE_NAME\=orcl)))
  </code></pre>
  
  <p>How can i do that?</p>