Hello sven veer,
I tried using Runtime Class, but I am getting Exception on NT...
Exception :java.io.IOException: CreateProcess: cls error=2
I tried on UNIX also, I am not getting any Exception. but the screen is not clearing..
My code is like this....
import java.io.*;
class clearScreenRuntime
{
static void main(String args[])
{
try
{
Runtime.getRuntime().exec("cls");
}
catch(IOException ioe)
{
System.out.println("Exception :"+ioe);
}
}
}
I wanted to know, is this the correct way of doing that....
If any modification requires then please let me know.
Suggestion from others is also welcome.
Regards
Raj