This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes dos commands through java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dos commands through java application" Watch "dos commands through java application" New topic
Author

dos commands through java application

ved gunjan
Ranch Hand

Joined: May 17, 2003
Posts: 86
hi! everybody i'm in fix.my problem is i want to run DOS commands through my java application.how to do that.any suggestions.
a java evangelist
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
java_gunjan,
Welcome to JavaRanch!
We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy.
Thanks Pardner! Hope to see you 'round the Ranch!


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Sadanand Murthy
Ranch Hand

Joined: Nov 26, 2003
Posts: 382
Originally posted by java_gunjan:
hi! everybody i'm in fix.my problem is i want to run DOS commands through my java application.how to do that.any suggestions.
a java evangelist

Look at the Runtime class. It has the exec method that will do what you are looking for. However you have to be very careful about it. Read this article before you attempt this.


Ever Existing, Ever Conscious, Ever-new Bliss
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: dos commands through java application
 
jQuery in Action, 3rd edition