|
-
Clearing the dos screen using java
hi
I want to clear the dos screen using java.
I saw 2 solutions on the net(given below) , but both did not work. Can someone
advise how I can go about doing this ? I'm
working on Windows2000.
Thanks in advance.
Seema
1. char esc = 27; // ESC code
String clear = esc + "[2J" // note case
System.out.print(clear); // Dos screen should be cleared
2. Runtime.getRuntime().exec( "cmd.exe /c cls" ) ;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks