The Artima Developer Community
Sponsored Link

Java Answers Forum
Clear MS-DOS screen

5 replies on 1 page. Most recent reply: Jan 28, 2004 8:04 AM by mausam

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Pinky

Posts: 2
Nickname: pinky
Registered: Jan, 2004

Clear MS-DOS screen Posted: Jan 26, 2004 7:34 PM
Reply to this message Reply
Advertisement
Hi all,

I have tried everything to clear the DOS screen that I found in the forum. Nothing worked for me.Please help !!

thanks
Pinky


mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Clear MS-DOS screen Posted: Jan 27, 2004 4:16 AM
Reply to this message Reply
u want to clear dos-screen by java or simply.

Try commoand cls and it will clear the dos screen

Pinky

Posts: 2
Nickname: pinky
Registered: Jan, 2004

Re: Clear MS-DOS screen Posted: Jan 27, 2004 10:16 AM
Reply to this message Reply
of course in JAVA. I know cls command

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Clear MS-DOS screen Posted: Jan 27, 2004 9:55 PM
Reply to this message Reply
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: Clear MS-DOS screen Posted: Jan 27, 2004 11:00 PM
Reply to this message Reply
mausam, if you are implying that you can simply do this:
Runtime.getRuntime().exec("cls");

then you surely have not tried it, or you'd know better. Even this:
Runtime.getRuntime().exec("cmd /c cls");
doesn't quite do the trick (and in any case, if you want to work on older versions of Windows, too, you should use %comspec%, but since it doesn't really work, the point is moot).

Pinky, if you had taken the trouble to search the forums for "clear screen" before posting your question, you'd see that it has been thoroughly covered: http://www.artima.com/forums/search.jsp?search=true&q=clear+screen&forums=-1&x=10&y=3.

In particular, the second hit shows how you would use JNI to do it: http://www.artima.com/forums/flat.jsp?forum=1&thread=293&message=684&redirect=true&hilite=true&q=clear+screen

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: Clear MS-DOS screen Posted: Jan 28, 2004 8:04 AM
Reply to this message Reply
hats off...

Flat View: This topic has 5 replies on 1 page
Topic: Where do we save the *.JSP files in TomcatServer Previous Topic   Next Topic Topic: How to write resize options in java applet

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use