title: With Java, run multiple commands in the same cmd.exe window
body: <p>I'm developing a Java application that will be run on a Windows computer occasionally.
  At some point I need to run a Cygwin prompt and performs some commands in it.</p>
  
  <p>I've found a topic where the Runtime class is used:
  <a href="http://www.javaquery.com/2011/03/how-to-execute-multiple-command-in.html" rel="nofollow">http://www.javaquery.com/2011/03/how-to-execute-multiple-command-in.html</a></p>
  
  <p>However it doesn't launch a real <strong>cmd.exe</strong> window, it's only run in background and the output is just printed on the Eclipse console.</p>
  
  <p>I'm looking for a solution to run a real <strong>cmd.exe</strong> window and I need to pass as many commands as I want to that windows shell.
  Is this possible?</p>