Did it work as you wanted?
Type: Posts; User: Norm
Did it work as you wanted?
Create an array with each item of the command line in one element of the array:
String[] cmdLine = {"the command", "arg1 for the command", "arg2 for the command"};
...
...exec(cmdLine);
If you have problems with the syntax that uses a single String for the command line, try using an array for the parts of the command line. The exec() method takes an array for an arg