try {
String[] cmd = new String[5];
String url = "D:\\";
cmd[0] = "cmd";
cmd[1] = "/c";
cmd[2] = "start";
cmd[3] = " ";
cmd[4] = url;
Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
e.printStackTrace();
}
String[] cmd = new String[5];
String url = "D:\\";
cmd[0] = "cmd";
cmd[1] = "/c";
cmd[2] = "start";
cmd[3] = " ";
cmd[4] = url;
Runtime.getRuntime().exec(cmd);
} catch (IOException e) {
e.printStackTrace();
}