Linux下:
String[] command = { "/bin/sh", "-c", cmmd };
Process ps = Runtime.getRuntime().exec(command);
Windows下:
String[] command = { "cmd.exe", "/c", cmmd };
Process ps = Runtime.getRuntime().exec(command);
Linux下:
String[] command = { "/bin/sh", "-c", cmmd };
Process ps = Runtime.getRuntime().exec(command);
Windows下:
String[] command = { "cmd.exe", "/c", cmmd };
Process ps = Runtime.getRuntime().exec(command);