public class cmd_starter{
public static void main(String[] args) {
try {
Runtime.getRuntime().exec("cmd.exe /c start");
} catch (Exception e) {
e.printStackTrace();
}
}
}
most of the commands can be executed trough the java programs.
you need to experiment :)))
here is a great site for cmd and java.