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 Spring in Action this week in the Spring 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: 19720
    
  20

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
 
jQuery in Action, 2nd edition
 
subject: How to run .cmd from Java