Setting\Getting Environment Variables through batch file inside java program
<p>I am facing a problem where I need to run a bat file from java program.
This Batch file contains certain SET ms-dos command which i need to access further down in my application.</p>

<p>I used ProcessBuilder Class to invoke the batch file but processBuilder.environment() is not returning me the variables set by the batch file. </p>

<p>DOS SET command sets the variables on that prompt only. </p>

<p>I am unable to find the solution for this problem.</p>

<p>Is there any ulternate approach for such issue. I cant change the Batch file.</p>

<p>Regards
Abhay </p>
