title: When executing batch file from Java Runtime, native DOS commands fail to run
body: <p>When I execute the batch file directly in DOS, everything runs as expected.
  But when I execute the batch file from Java runTime, it will run only the commands that invoke jar files (ie. invoke the JVM).  It does <em>not</em> run any native dos commands.  </p>
  
  <p>One problem is that I have no console to know why this is happening.  I'm wondering if it's a permissions problem, but I have no idea.  Anyone out there see this before?</p>
  
  <p>The Java code used looks something like this:<br></p>
  
  <blockquote>           Runtime.getRuntime().exec("c:\targetFolder\myBatch.bat"); // (Edited here for simplicity.)
  </blockquote>
  
  <p><br>
  The batch file looks something like this (noting that I've simplified it):<br>
  myBatch.bat:</p>
  
  <blockquote>
    call java myJar.jar blah blah         --- yes<br>
    copy outputFile.out outputFile.bak    --- NO<br>
    mkdir testDir                         --- NO<br>
    call java myJar.jar blah blah         --- yes<br>
    call someOther.bat                    --- NO<br>
  </blockquote>
  
  <p>The ---yes lines run fine and I see the expected results<br>
  The ---no lines do <em>not</em> run, but I have no idea why not b/c there is no console to tell me.</p>
  
  <p>Thanks for any help!!
  Mike</p>