Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's Wrong Here?
Message
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00549825
Message ID:
00550611
Views:
22
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform