Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I Do This?
Message
Information générale
Forum:
Java
Catégorie:
Autre
Titre:
How Do I Do This?
Divers
Thread ID:
00549647
Message ID:
00549647
Vues:
45
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
Répondre
Fil
Voir

Click here to load this message in the networking platform