Java tutorial
//package com.java2s; public class Main { public static void test11() { try { // xcopy c:\img d:\file /d/e String cmdStr = "cmd /c xcopy c:\\img d:\\file /d/e"; Runtime.getRuntime().exec(cmdStr); } catch (Exception e) { e.printStackTrace(); } } }