Cannot run command window
In Windows I would expect to call up a seperate command window with the following, but it appears to freeze up. What am I doing wrong?
import java.io.*;
publicclass command{
publicstaticvoid main(String[]args){
try{
Process runprogram = Runtime.getRuntime().exec("C:\\windows\\system32\\cmd.exe");
try{
runprogram.waitFor();
}
catch(InterruptedException e){}
}
catch(IOException e){
System.err.println("Cannot run command window");
}
}
}

