Java - Run & use .bat file
<p>I have a file <code>generateK.bat</code>, which generate key randomally. </p>

<p>I have two question:</p>

<ol>
<li>How can I run <code>.bat</code> file in java enviroment? I saw only instruction of edit the .bat file, but not run it.</li>
<li>I want to use the key in my program. How can I use the output in java?</li>
</ol>

<p>Thanks.</p>
