change working directory in java
how can i use java to change the working directory?
here is what i have
-----------------------------
Process child2 = Runtime.getRuntime().exec("cd test");
child2.waitFor();
but the test is not the working directory.
please help
thanks
|