I am trying to change current working directory in unix using Java , but it's not working
Here is my sample:
- The current working directory is
/temp/input
- I want to change the directory to
/test/output
- And create new folder using
mkdir
String[] commands = new String [] {"bash", "-c", "mkdir temp"};
Runtime.getRuntime().exec(commands,null,new File("/test1/output"));