Popular Posts
SwiXml - TabbedPane TabbedPane.xml <?xml version="1.0" encoding="UTF-8"?> <panel layout="BorderLayout">     <label... jQuery Validation Engine default options ASP.NET MVC 5 Attribute Routing Enable attribute route Global.asax public class MvcApplication : System.Web.HttpApplication {     protected void Application_Start()     {...
Stats
Execute dos command
import java.io.IOException;

public class ExecuteDosCommand {

    public static void main(String[] args) throws IOException, InterruptedException {

        String cmd = null;
        try {
            String s = "command.exe";
            Runtime.getRuntime().exec(s);
            cmd = s;
        } catch (Exception ex) {
            // ex.printStackTrace();
        }
        try {
            String s = "cmd.exe";
            Runtime.getRuntime().exec(s);
            cmd = s;
        } catch (Exception ex) {
            // ex.printStackTrace();
        }

        String s = String.format("%s /C start %s", cmd, "c:\\新增文字文件.txt");
        System.err.println(s);
        Runtime.getRuntime().exec(s);
    }
}

When Runtime.exec() won't