Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's Wrong Here?
Message
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00549825
Message ID:
00550611
Vues:
30
Thanks.

I wrote some C++ code, Clear.Exe, which works fine when run
from a DOS prompt.

The whole reason for this was to clear the DOS screen in a
JAVA program. Even though my Clear.Exe clears a DOS screen
from the command prompt, is DOESN'T work in a JAVA progrm:


// This should clear the DOS window, just like
// a DOS CLS command

string command="cls";
Process proc = runtime.getRuntime().exec(command);


I got this whole idea here:
Java Forum: CLEAR SCREEN

Any idea why this won't work?

Many Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform