execute dos commands through java
Hi,
Im trying to execute dos commands through java like
try{
java.lang.Runtime.getRuntime().exec("cmd /c cls");
}catch(IOException e){
System.out.println(e.getMessage());
}
Not sure if its possible? however
open notepad would work
try{
java.lang.Runtime.getRuntime().exec("notepad");
}catch(IOException e){
System.out.println(e.getMessage());
}
Im trying to execute a cls commands to clear screen but without luck.

