public void excCommand(String new_dir){     Runtime rt = Runtime.getRuntime();     try {         rt.exec(new String[]{"cmd.exe","/c","start"});      } catch (IOException e) {         // TODO Auto-generated catch block         e.printStackTrace();     } } 

Read more of this post