Edit code below is fine, lack of sleep meant I was making sloppy mistakes elsewhere, ignore this thread.
Code:
public static void main(String argv[]) {
try {
String[] params = {"cmd.exe","copy EmptyFile1.txt EmptyFile3.txt"};
Process p = Runtime.getRuntime().exec(params);
//p.waitFor();
// System.out.println(p.exitValue());
}
catch (Exception err) {
err.printStackTrace();
}
}