title: how to make a Batch file that runs all my listed commands
body: <p>I have made a batch file to run one command on my database. when I click on it, its working fine.</p>
  
  <p>Command-</p>
  
  <pre><code>start db2cmd.exe "db2 connect to QATEST"
  </code></pre>
  
  <p>screenshot of successful completion</p>
  
  <p><a href="http://i.stack.imgur.com/qZHC7.jpg" rel="nofollow">successful completion</a></p>
  
  <p>But after adding one another command in my batch file it is giving me error.</p>
  
  <p>I want to run this command <code>"db2 select * from db2admin.table_a"</code> on my opened command line, in mentioned first screenshot.</p>
  
  <p>I used below command for this-</p>
  
  <pre><code>start db2cmd.exe "db2 connect to QATEST" "db2 select * from db2admin.table_a"
  </code></pre>
  
  <p>screenshot of error occured</p>
  
  <p><a href="http://i.stack.imgur.com/LvBFr.jpg" rel="nofollow">error screenshot</a></p>
  
  <p>but it doesnot work somehow. and at the end of successful completion of command the opened cmd should close.</p>
  
  <p>How to do it? can anybody help me in this?</p>