aspose file tools*
The moose likes Java in General and the fly likes How to run .cmd from Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to run .cmd from Java" Watch "How to run .cmd from Java" New topic
Author

How to run .cmd from Java

Manish Ramrakhiani
Ranch Hand

Joined: Aug 20, 2009
Posts: 44
Hello All,

I need to run a .cmd file from a java program.

Please help.

Thanks,
Manish Ramrakhiani.
Manish Singh
Ranch Hand

Joined: Jan 26, 2007
Posts: 160
Look for Process class
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19538
    
  16

And read the Javaworld.com article "When Runtime.exec() won't".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run .cmd from Java
 
Similar Threads
executing scripts
Launch batch file from java?
Launching telnet using java program fails with Win 7 OS
trying to run a linux commands from a java app
command promt