Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Do This?
Message
General information
Forum:
Java
Category:
Other
Title:
How Do I Do This?
Miscellaneous
Thread ID:
00549647
Message ID:
00549647
Views:
38
I am prompting the user for input in a DOS window:

  System.out.print("Enter yourt name: ");
  entry = (char) System.in.read();


How do I clear the screen first? I want to do a DOS CLS command. I
have tried:


  Runtime runTime = Runtime.getRuntime();
  try
  {
    Process process1 = runTime.exec("command /c cls");
  }
  catch (java.io.IOException io)
  {
    System.out.println( "Error" + io );
  }


But this doesn't work. Does anyone know how to do this?

Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Reply
Map
View

Click here to load this message in the networking platform