Home Answers Viewqa Java-Beginners How to clear dos screen just like cls in dos

 
 


ravisangam
How to clear dos screen just like cls in dos
1 Answer(s)      4 years and a month ago
Posted in : Java Beginners

View Answers

April 28, 2009 at 10:44 AM


Hi Friend,

Put the 'cls' command in your batch file(ab.bat) and call it by using following code:

import java.util.*;
import java.io.*;

public class CallFile{
public static void main(String[] args) {
try {
Runtime rt = Runtime.getRuntime();
rt.exec("cmd.exe /C start C:\\ab.bat");
}
catch(Exception ex){
ex.printStackTrace();
}
}
}

Thanks









Related Pages:
How to clear dos screen just like cls in dos - Java Beginners
How to clear dos screen just like cls in dos  You said we have to write bat bile. so every time i have to call that file in my java program am i... answer  Hi Friend, Put the 'cls' command in your batch file(ab.bat) and call
How to clear Dos screen in java? - Java Beginners
How to clear Dos screen in java?  How to clear Dos screen in java? Is there any way to clear the dos screen in windows platform just like "cls" in dos and clrscr in c
How to clear Dos screen in java? - Java Beginners
How to clear Dos screen in java?  How to clear Dos screen in java? Is there any way to clear the dos screen in windows platform just like "cls... having the DOS command like "clr". Now you can call that particular batch file
how to clear dos screen in java - Java Beginners
how to clear dos screen in java   how to clear dos screen in java
How to clear a Dos Window? - Java Beginners
How to clear a Dos Window?  problem with the following code: This code is opening another dos window.Is it possible to close the first dos window without exiting from the second window...I don't want to open two windows...how
Summary: DOS Commands
of the root directory on a drive. CLS Clear screen EXIT Exit from DOS...Java Summary: DOS Commands In this section we will discuss about DOS commands. If you are developing Java program on windows then you should learn these DOS
Group Discussion Dos and Don’ts
Group Discussion Dos and Don’ts   ... the most obvious thing, but many people don’t understand how they can prepare... you in other areas like entrance tests and interviews too. Second, try
Work Email- Dos and Don?ts
call it a day. The Format Just like official letters, keep your emails... Work Email- Dos and Don’ts   ... formality- these have the function of making your thoughts clear to others. Avoid all
Trouble in running Dos Command from Java Servlet
Trouble in running Dos Command from Java Servlet  Hello All, I have... servlet I wants to run specified DOS Command. Can anyone help me out here ? I have tried googling too. But the googling results are very limited to commands like
Source Code cls - Java Beginners
Source Code cls   Dear RoseIndia Team, Thanks for your prompt reply to my question about alternate to cls of dos on command line source code. I... a oneliner (i.e cls) this would give us the same result. No need of compiling/running
java program for Denial of Service (DoS) attacks detection - Swing AWT
java program for Denial of Service (DoS) attacks detection  i want a simple program to generate and detect a Denial of Service (DoS) attacks. using java program
Source Code - Java Beginners
Source Code  How to clear screen on command line coding like cls in DOS?  Hi Friend, Here is the code to execute cls command of DOS... AnotherProgram cls Thanks RoseIndia Team
Dog gps tracking chip
of its advent, it has been in use it has reunited many dos with their owners. But before we go any further let?s be clear about one thing... disadvantages to the use of microchip like the database will be limited to a locality
Capturing screen shot
for the specific key combination. This program shows how to set the key strokes... operations like: cut, copy, paste, up, down, left and right. Following methods...;} } Screen shot for the result of the above program: Download
Screen Capture
Screen Capture  How to capture the screen using jsps and servlets
iPhone Splash Screen
iPhone Splash Screen In this example, I'm going to show you how to create splash screen in iphone apps. The motto behind showing splash screen is to show... show your user a splash screen instead of a boring black screen while
splash screen
splash screen  What is splash screen and how can i set splash screen in iphone??   hello, if you want to launch splash screen then add... splash screen will show launching time
Screen Capture
Screen Capture  Hi deepak, I am trying to take a screen shot using java script Activex object. But Iam getting Automation server cant create object exception .how can i solve
How to translate gameobject like chainwise
How to translate gameobject like chainwise  i try to make program of just like in casino where number move up and down high speed and then its speed... at lower limit so that it look like number follow each other. after some time
Screen flashing
Screen flashing  Hey I am trying to make my screen flash (like a white flash as if from a camera). This is my code so far: <html> <... I want is that I want the screen to flash white when a link is clicked. Thanks
How to Manage Windows 8 Start screen?
on the programs. Let us learn, how to manage your Windows 8 Start screen. Unpin... not of your regular use from the start screen, just right-click on it and click... on your Start screen, just move your mouse cursor to the extreme top-right corner
Just Got The New iPad? Getting Started?
Just Got The New iPad? – Getting Started Since its release in early... in the range. If you have just bought the device there a number of things you... should get to know the basic dimensions to see how it fits into your life
The isTouch Screen on the iPad a Convenient Feature
be handled on the touch screen. This is due to how they can create more pressure...The Touch Screen on the iPad is a Convenient Feature One of the best features that the Apple iPad has is its ability to work with a touch screen
Screen Coordinates
Java NotesScreen Coordinates Every computer monitor screen is made of pixels. Each pixel is a small spot on the screen. There are approximately 3 pixels... on the screen. A typical screen might be 800 pixels wide and 640 pixels high
Caputuring screen shot
Caputuring screen shot  How to to capture screen shot for a computer on internet
Screen Scraping - Ajax
Screen Scraping  How i can do the screen scraping using java and ajax
recorder screen in java
recorder screen in java  Dear friends, how can I capture the screen in real time? best regards Riccardo Susca
recorder screen in java
recorder screen in java  Dear friends, how can I capture the screen in real time? best regards Riccardo Susca
JavaScript Array Clear
JavaScript Array Clear       Clear() method is used to clear all the defined array. In this section, you will study how to clear the Array in JavaScript. You can see
Clear UIWebView cache iPhone
Clear UIWebView cache iPhone  Hi, In my iPhone application ..i am using a UIWebView to load different URL on it. But i am afraid that it 's not releasing the memory. Can anyone please explain me how to load and release
What is the equivalent method in Java which is equivalent to clrscr() in c/c++ . The code should help to clear the output screen ?
What is the equivalent method in Java which is equivalent to clrscr() in c/c++ . The code should help to clear the output screen ?  Hello to all, I have searched the net to know that is there any equivalent method for clrscr
Touch screen effect
Touch screen effect  Hello everyone, I would like to create a desktop application using java, is it possible to have touch screen effect for the desktop application? Exp: when user click next button, whole screen will move
JavaScript Array Clear
JavaScript Array Clear In this tutorial you will learn how to use the clear method in your JavaScript program. Clear() method is used to clear all the defined array. In this section, you will study how to clear the Array
javascript clear textarea
like below: Click on 'Clear TextArea' button, you will see that the text... javascript clear textarea... have also created a button named "Clear TextArea" which calls
populating a screen on the same page
down. But now i want that onclicking slot(button) a small selection screen like...populating a screen on the same page  i'm making a time table in jsp. i have put button on each slot.if a person click on that slot it'll redirect
yum clear cache
yum clear cache In this tutorial I will tell you how you can delete the cached... tool to clear cache Following command is used to to delete the package data: su... you just need to install the package on your linux system. After installing
Clear cookie example
Clear Cookie Example    .... The example below shows how to delete the cookie from the browser using...; Clear cookie example </title> <script type="text/javascript">
How to clear a float buffer in java.
How to clear a float buffer in java. In this tutorial, we will  see how to clear a float buffer in java. ByteBuffer API: The java.nio.FloatBuffer class... mode to reading mode. Buffer clear() The clear() method
How to clear int buffer in java.
How to clear int buffer in java. In this tutorial, we will discuss how to clear int buffer in java.          ... final Buffer clear() The clear() method clear the buffer. 
login screen - Java Beginners
login screen  how can code a login screen please send me the code with two entries Username and Password and validate it please  Hi Friend, Try the following code: import javax.swing.*; import java.awt.
like operator
like operator  how to select exact value using like operator in php
how to create an xml file in following clear format
how to create an xml file in following clear format  anyone please help me out to create this file,,. <Tasks> <Taskid>1 <Taskname>Coding <Project>CeMIC <Date>
Just Got An iPad? - The Range Of Protective Cases You Can Choose From
Just Got An iPad? - The Range Of Protective Cases You Can Choose From... making waves all around the globe, and if you have just got yourself one... and the sides of the iPad, leaving the screen free for you to work
Java ArrayList clear
It removes all the elements of the given list and returns empty list But the remove method removes element one by one Java Arraylist Clear Example import java.util.*; public class List1 { public static void main
splash screen time delay iphone
splash screen time delay iphone  How can i delay the splash screen?   How to delay splash screen in iPhone/iPad/ Objective C Splash scree is the very first screen that run while application launch. By default
Help me to create a sharing text just like facebook using jsp servlet and oracle
Help me to create a sharing text just like facebook using jsp servlet and oracle   I tried to use lot of methods but i couldn't get the proper method to do the share option. While a person is login into the web page he can share
LIKE Operator
LIKE Operator       The LIKE operator is used for searching  a specified pattern in the column. In this example we will show you how to use the Like operator to get
how can clear the browser cache memory using java script
how can clear the browser cache memory using java script  how can clear the browser cache memory using java script
Java get Screen Dimensions
Java get Screen Dimensions       In this section, you will learn how to obtain the height and width of the specific screen. The Toolkit class has a static method called

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.