Runtime.getRuntime().exec( "command.com /E:1900 /C MyBat.bat" );
Runtime.getRuntime().exec( "command.com /E:1900 /C ATTRIB -h C:\\temp\\*.*" );
Runtime.getRuntime().exec( "cmd.exe /E:1900 /C MyCmd.cmd" );
Runtime.getRuntime().exec( "cmd.exe /E:1900 /C copy C:\\this.txt D:\\that.txt" );
Runtime.getRuntime().exec( new String[] {
"cmd.exe",
"/E:1900",
"/C",
"net",
"start",
"servicename"});
Runtime.getRuntime().exec( "C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
Runtime.getRuntime().exec( "C:\\4DOS601\\4DOS.COM /E:1900 /C del C:\\this.txt" );
Runtime.getRuntime().exec( "F:\\Program Files\\JPSoft\\4NT8\\4NT.EXE /E:1900 /C MyBtm.btm" );
Runtime.getRuntime().exec( "F:\\Program Files\\JPSoft\\4NT8\\4NT.EXE /E:1900 /C DIR C:\\temp" );
String[] cmd = {"/bin/bash", "-c", "rm /dirA/*"};
Runtime.getRuntime().exec( cmd );