Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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();
        }
    }
}