When executing batch file from Java Runtime, native DOS commands fail to run -
When I execute the batch file directly in the DOS, everything goes as expected, but when I run from the Java runtime If I execute a batch file, it will only execute those commands that start jar files (i.e. it not runs any native dos commands a problem It is that I do not have any console to know why this is happening. I am thinking This is a permission problem, but I do not know. The Java code being used looks something like this: runtime.gettime (.exec) "C: \ targetFolder \ myBatch.bat" "); // (Simplicity was edited here.) The batch file looks something like this (noticeable that I did it simple Made): myBatch.bat: call java myjar jjar blah blah --- yes --- copy outputFile.out outputFile.bak --- no = mkdir testDir --- no / Call java myJar.jar blah blah --- yes call someOther.bat --- none --- yes Ainon is going well and I'm looking forward results --- No line not to run, but I do not know why not b / c no console to tell me. Thanks for any ...