That says the program "cd" can't be found. Some commands are NOT programs but are part of the DOS environment defined by another program. Try some other commands. For example the "cmd" command.
...
Type: Posts; User: Norm
That says the program "cd" can't be found. Some commands are NOT programs but are part of the DOS environment defined by another program. Try some other commands. For example the "cmd" command.
...
For debugging its useful to print out the contents of the array that is passed to the exec() method.
Something like: System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
Are...
I don't know if the exec() method will execute more that one command. If you want to have multiple DOS commands executed with one call to the exec() method, look at using a batch file that contains...
This part of the error message tells you what it wrong. The runProcess() method takes a String.
The code is trying to pass it a String[] array.
The exec() method can take an array, so try...