File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Head First Android this week in the Android 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: 20044
    
  30

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


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: How to run .cmd from Java
 
It's not a secret anymore!