How to clear dos screen just like cls in dos

How to clear dos screen just like cls in dos

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 Tutorials/Questions & Answers:
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
Advertisements
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
DOS ATTACK
DOS ATTACK  JAVA CODE FOR MONITORING AND PREVENTION OF DOS ATTACK
execute dos commands
execute dos commands  how to execute dos commands using a java program
ModuleNotFoundError: No module named 'dos'
ModuleNotFoundError: No module named 'dos'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'dos' How to remove the ModuleNotFoundError: No module named 'dos' error
ModuleNotFoundError: No module named 'phonon-dos'
'phonon-dos' How to remove the ModuleNotFoundError: No module named 'phonon-dos' error? Thanks   Hi, In your python environment you...ModuleNotFoundError: No module named 'phonon-dos'  Hi, My Python
ModuleNotFoundError: No module named 'nhs-dos'
-dos' How to remove the ModuleNotFoundError: No module named 'nhs-dos...ModuleNotFoundError: No module named 'nhs-dos'  Hi, My Python... to install padas library. You can install nhs-dos python with following command
Group Discussion Dos and Don’ts
Group Discussion Dos and Don’ts   ... This sounds the most obvious thing, but many people don’t understand how..., as it can help you in other areas like entrance tests and interviews too. ADS
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
ModuleNotFoundError: No module named 'clear-screen'
'clear-screen' How to remove the ModuleNotFoundError: No module named 'clear-screen' error? Thanks   Hi, In your python...ModuleNotFoundError: No module named 'clear-screen'  Hi, My Python
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 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
how to clear r console
how to clear r console  Hi, I doing experiment on the RGui in R... of log. Now I want to clear r console. how to clear r console? Thanks  ... here. To clear R console you have to press Ctrl +L keys in combination
ModuleNotFoundError: No module named 'cls'
ModuleNotFoundError: No module named 'cls'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cls' How to remove the ModuleNotFoundError: No module named 'cls' error
ModuleNotFoundError: No module named 'cls'
ModuleNotFoundError: No module named 'cls'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'cls' How to remove the ModuleNotFoundError: No module named 'cls' error
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
How to connect on screen keyboard to system.
How to connect on screen keyboard to system.  How to connect on screen keyboard to system.I made on screen keyboard in java(swing).Now i want connect to system means when i pressed any button then it type on notepad or any
How to connect on screen keyboard to system.
How to connect on screen keyboard to system.  How to connect on screen keyboard to system.I made on screen keyboard in java(swing).Now i want connect to system means when i pressed any button then it type on notepad or any
ModuleNotFoundError: No module named 'impartial-text-cls'
named 'impartial-text-cls' How to remove the ModuleNotFoundError: No module named 'impartial-text-cls' error? Thanks   Hi, In your...ModuleNotFoundError: No module named 'impartial-text-cls'  Hi, My
Work Email- Dos and Don?ts
emails before you call it a day. ADS_TO_REPLACE_2 The Format Just like official... Work Email- Dos and Don’ts   ... of making your thoughts clear to others. Avoid all capitals in your emails
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... the buffer from writing mode to reading mode. Buffer clear
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.          ... Description final Buffer clear() The clear() method clear
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>
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
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
How to clean a buffer using clear method in java.
How to clean a buffer using clear method in java.      ..., we will discuss the use of clear() method. The Buffer class is a  container for handling primitive data type. The clear() method is available
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
How to learn Java in just one day
How to learn Java in just one day  Hi, I have to urgently start... of Java and need to start on the project quickly? How to learn Java in just one day? Thanks   How to learn Java in just one day? If you have spent
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... How to Pin New Tiles in Start Screen If one or more tile is removed from
How to send massage like way2sms.com
How to send massage like sms websites  Hi sir how i can make a small project in php (send massage by website like free sms website on internet) Please advice me
How to print like printf in python
How to print like printf in python  Hi, I am from C background and there used to be printf function. Jow to print like printf in python? The printf function is C/C++ is very useful. So, looking for some line printf in Python
Screen Capture
Screen Capture  How to capture the screen using jsps and servlets
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
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
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.. ADS_TO_REPLACE_1
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
i need project for shopping cart in struts 1 with the oracle database and give clear explanation for how to execute it in my eclipse
and give clear explanation for how to execute it in my eclipse  i need a project for shopping cart in struts1 with the oracle database and give clear explanation for how to execute it in my eclipse and where to copy the files as i am
Caputuring screen shot
Caputuring screen shot  How to to capture screen shot for a computer on internet
ModuleNotFoundError: No module named 'clear'
ModuleNotFoundError: No module named 'clear'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'clear' How to remove the ModuleNotFoundError: No module named 'clear'
ModuleNotFoundError: No module named 'clear'
ModuleNotFoundError: No module named 'clear'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'clear' How to remove the ModuleNotFoundError: No module named 'clear'
How to populate collection like map with annotation in mybatis?
How to populate collection like map with annotation in mybatis?   <collection property="participantCas" column="agmtsID" javaType="java.util.ArrayList" ofType="com.Client"> <id property="partyId" column
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
Screen shot
Screen shot  webpage screenshot source code
Screen Scraping - Ajax
Screen Scraping  How i can do the screen scraping using java and ajax
ModuleNotFoundError: No module named 'screen'
'screen' How to remove the ModuleNotFoundError: No module named 'screen'...ModuleNotFoundError: No module named 'screen'  Hi, My Python... to install padas library. You can install screen python with following command
janusgraph clear graph
janusgraph clear graph  Hi, I am working on JanusGraph and during developed it is filled with all junk data. I want do clear my graph by deleting all data. How to clear JanusGraph? Thanks   Hi, Its easy
recorder screen in java
recorder screen in java  Dear friends, how can I capture the screen in real time? best regards Riccardo Susca

Ads