1002489 wrote:I would be interested to know what 'issues' since last time I looked Runtime.exec() used ProcessBuilder behind the scenes and has done so since ProcessBuilder was introduced. In other words - if you are using Runtime.exec() you are actually using ProcessBuilder!
. Previously I have to switch from using ProcessBuilder to Runtime.getRuntime().exec due to other issues.
user13779470 wrote:Probably missed it but it doesn't seem like any of the other replies actually addressed the error.
exitStatus is: 1
The command error message shows: File not found
"cmd /c dir /p c:\\temp > c:\\temp\\out.txt";I get 1 for a number of variations in the above including