In a command window (sometimes called a DOS window ... not exactly true but compatible enough for jazz) enter COMMAND /? and CMD /? In short, you can run programs that are exe files just by putting the names into runtim.exec(). For commands that are provided by COMMAND or CMD you have to start COMMAND or CMD with the command as an argument.
Ha! Just checked back ... that's the same link Ulf gave. It really will have everything you need. [ September 23, 2006: Message edited by: Stan James ]
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
madhuri akhi
Greenhorn
Joined: Sep 18, 2006
Posts: 24
posted
0
Thank you ULF DITTMER. This link is very useful for me.i use this below code /* * Created on Sep 23, 2006 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */
import java.util.*; import java.io.*;
/** * @author Administrator * * TODO To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class GoodWindowsExec {
public static void main(String[] args) { if (args.length < 1) { System.out.println("USAGE: java GoodWindowsExec <cmd>"); System.exit(1); }